In AS3 how can you detect if someone pulls their camera out of the USB port?

In AS3 if the SWF gets a hold of someone's camera successfully and they start streaming video across and everything, but then mid-stream, either they accidentally wiggle their camera out of the USB port, or the camera just sort of breaks down, or something else like that, how could you detect it from that user's side?  I've tried using event listeners and also polling different variables every five seconds, but neither has worked; none of the public properties of Camera or its events seem to act funny at all when something like that happens.  And apparently you can't just keep scanning the computer for devices (for good reason, I guess).
Is there something I'm missing here?  Is there a way to detect from a user's copy of a SWF (FP or AIR, but much more importantly FP) when their camera has effectively stopped as the result of something going wrong, such as them wiggling it out of the computer by mistake?  If so how?  Thanks!

Run your code and disconnect your camera. What are the common properties of it? Does your stream stop? Return only a specific color frame? Those things are usable to detect it but you're right in saying you can't detect much more than a loss of packets from a NetStream object.

Similar Messages

  • How can you tell if someone is accessing your computer or camera remotely?

    How can you tell if someone is accessing your computer and/or camera remotely?

    what is making you suspicious that this is happening?  Or is this just a general question?

  • How can you listen to music and play a game at the same time?

    How can you listen to music and play a game at the same time?
    I am playing music, by starting the Crash Baandicoot Nitro Kart 3D game it shuts off the music playing. Is there a way around this?
    It seems like this should be possible.
    Message was edited by: RuthlessVengeance
    Message was edited by: RuthlessVengeance

    Select the music play list you want to listen to and start it playing. Go back to the home screen and start the app you want to use, music will stop. Press the home button two time quickly and it will bring up a simple control for controling the music. This works for me with all of the apps I have purchased including games. Just a note you can pull up the same music control if the iPod is a sleep and locked by pressing the button three times quickly.
    Mike

  • How can you sync ipad 2 photos to pc not using the cable or icloud sync?

    How can you sync ipad 2 photos to pc not using the cable or icloud sync? Is there a way to do this via wi-fi network, How can you sync ipad 2 photos to pc not using the cable or icloud sync? Is there a way to do this via wi-fi network

    Thanks for that, that was my first suggestion but he wants to not email either. His problem is he used his old nokia to do it and it was fine, now anything other than that he thinks is too much hassle.

  • How can you tell what type of Iphone I have from the model number or serial number from the settings menu

    how can you tell what type of Iphone I have from the model number or serial number from the settings menu?

    Type Serial Number from Settings App here https://selfsolve.apple.com/agreementWarrantyDynamic.do it will tell you the type of iPhone.

  • How can you upload photos to FaceBook from iPhoto without using the sync where is deleted in iPhoto it will be deleted in FaceBook

    How can you upload photos from iPhoto to FaceBook without having the sync where if you delete from iPhoto you delete

    I think you have to have the files on your HD. So either put them in iPhoto or copy them to a folder in Finder, and from there you can upload to Facebook.

  • Premiere CS4 - How can you import QuickTime (.mov) videos and which settings for the sequence?

    Premiere CS4
    How can you import QuickTime (.mov) videos and which settings for the sequence?
    Please reply in plain English or if possible in German
    Greetings from Vienna, Peter

    I have not installed Quicktime.
    I got a few scenes (.mov) from a Canon Eos 70d.
    I want to create a short film (in Premiere CS4) with these scenes, mixed with photos and MP3 music.

  • Why can I no longer use my exterior speakers connected to the USB port on my MacBook pro

    QuestionWhy can I no longer use my exterior speakers connected to the USB port on my MacBook pro ?

    Have you checked the Sound Preferences under the System Preferences and set it to USB speaker for the sound output? Sometimes it can change on its own or after and update of an App or the OS?

  • HT3529 how can you tell that someone read your text message?

    How can I tell if someone has read my text message?

    Text messages, i.e. SMS or MMS, do not have a "return receipt" feature. iMessages, however, do. If you're sending via the Messages app, your friends need to turn on the "Send Read Receipts" option in the Messages settings on their iOS devices.
    Regards.

  • How can you "Add document" in shared documents without allowing editing the page ie Contribute?

    Hello Community
        Using SharePoint 2010 Server and the UI, when you click "Site
    Actions" - "New Site" and you create Team Site that that is a
    Sub-site. 
        When you create the Visitor, Members and Owners groups
    how can you allow the user to add a document while at the same
    time not allow them to edit the page when adding the document
    as the only permissions are Full Control, Contribute and Read?
        Thank you
        Shabeaut

    Hi Shabeaut,
    To create a new permission level, you should manage the Parent (site collection).
    Your current location is subsite, and it looks like it has unique permission(broke inheritance) that is the reason you are not able to see the create permission level. and another reason for seeing Inherit Permissions along with other menus in the ribbon.
    You should also see Manage Parent along with the menus you see when your site inherits permission from parent.
    So, go to your site collection and create a new permission level and assign users to it.
    And to assign permission level to your new groups, you will be able assign permission when you create a new group, along with the name, all permissions would be listed in the same page(_layouts/newgrp.aspx).
    see the below screenshot for more info -
    ->Site Actions menu-> Site Settings->Users and Permissions->Site ->Permission Levels.
    Hope this helps!
    MCITP: SharePoint 2010 Administrator
    MCTS - MOSS 2007 Configuring, .NET 2.0
    | SharePoint Architect | Evangelist |
    http://www.sharepointdeveloper.in/
    http://ramakrishnaraja.blogspot.com/

  • How can you detect irregular edges using the IMAQ add on?

    Im currently trying to use the IMAQ add-on for LabView to detect the edges of an irregular image. I have attached the image I am trying to detect the edges of. I have tried using everything in the "locate edges" sub-pannel (i.e.. imaq find edge, imaq find circular edge etc.) but none of them have yielded any favorable results. I think the "IMAQ edge tool 3 IV" might be what im trying to find however I don't understand how to get any usable data out of it.
    Thank you, all comments and help are greatly appreciated. 
    Attachments:
    waveguide.png ‏516 KB

    Hi Dander, 
    I am not sure exactly what types of edges you are trying to acquire, but I used one of the examples from our Example Finder and was able to detect edges on your image.  I will say that with the image that you are using, the edges are not very well defined, so you may not get a 100% accurate measurement.  The example that I was using uses the IMAQ Edge Tool 3 VI and the example can be found by going in LabVIEW to Help>>Find Examples...  From there, you will go to Toolkits and Modules>>Vision>>Functions>>Edge Detection Example.vi.  After that, you will remove the build path function and input a path to the image.  I hope this helps!
    Kim W.
    Applications Engineer
    National Instruments

  • How can you add your own print and export buttons to the CR viewer toolbar?

    I posted a previous question that was asking how to get around the Information Bar in IE7 when you export and print.  Unfortunately the CR viewer file download code gets blocked by IE7 because the buttons don't directly download the file.  However, I have been able to get a regular button that calls the following code and streams the file to the client and IE7 does not block it. 
    Sub PrintPDF(sender As Object, e As System.EventArgs)
         Dim crReportDocument as ReportDocument
         Dim crExportOptions as ExportOptions
         Dim crDiskFileDestinationOptions as DiskFileDestinationOptions
         Dim Fname as string
         CrReportDocument = New ReportDocument()
         CrReportDocument.Load(Server.MapPath("estactionlist.rpt"))
         Fname = Server.MapPath("./") & Session.SessionID.ToString & ".pdf"
         CrDiskFileDestinationOptions = New DiskFileDestinationOptions()
         CrDiskFileDestinationOptions.DiskFileName = FName
         CrExportOptions = crReportDocument.ExportOptions
         With crExportOptions
              .DestinationOptions = CrDiskFileDestinationOptions
              .ExportDestinationType = ExportDestinationType.DiskFile
              .ExportFormatType = ExportFormatType.PortableDocFormat
         End With
         CrReportDocument.Export()
         Response.ClearContent()
         Response.ClearHeaders()
                    Response.AddHeader("content-disposition", "attachment;filename=test.pdf")
                    Response.ContentType = "application/pdf"
                    Response.Charset = ""
                    Response.WriteFile(Fname)
                    Response.Flush()
         Response.Close()
         System.IO.File.Delete(Fname)
    End Sub
    So here are my questions?
    1. Is it possible to add a custom print control/icon to the CR viewer toolbar?
    2. If one is not possible, then is it possible to override the CR viewer print and export buttons with your own subroutines like the one above?
    I just want my page to look nice and hate to have print and export buttons outside of my CR viewer. 
    Thanks,
    Kevin

    It might be possible to replace the buttons in a windows app since you can retrieve the toolbar as a toolbar object in the winform viewer  ( ToolStrip toolBar = (ToolStrip) crystalReportViewer1.Controls[3]; )  however with a web app, it's a lot more difficult.
    The problem is that that you need to parse the Request string to try and figure out if the print / export button was clicked.  The code below makes the print button disappear if you click it, so you should be able to modify it to call your custom printing / exporting code instead  (You have to do this check in a postback)
            Dim I As Integer = 0
            If Request.Form.AllKeys.Length > 0 Then
                For I = 0 To Request.Form.AllKeys.Length - 1
                    Response.Write(Request.Form.Keys(I).ToString & "<BR>")
                    If Request.Form.Keys(I).ToString = "CrystalReportViewer2:_ctl2:_ctl2.x" Then
                        CrystalReportViewer2.HasPrintButton = False
                    End If
                Next
           End If
    Shawn

  • How can you insert foreign letters into pages in Maverick? The old option of holding down the key has disappeared.

    After downloading Mavericks on the MacBook Air, the ability to hold down a key and insert a foreign language symbol or letter disappeared. How can foreign language alphabet symbols/letters be inserted into Pages?

    Are you still using the US keyboard layout?
    Pending a solution to restore the Character Picker, you can use the traditional option key shortcuts for many characters, e.g. option + e, then e produces é.
    Plus you can use Edit > Special Characters to bring up the Character Viewer.

  • How can you use music from a different itunes account on the same iphone

    i bought my iphone 4s and had an apple id.  then changed my apple id, but lost my music on my phone. can i keep music on my phone from another apple id, itunes?

    Paid content purchased from the itunes store is always assigned to a single apple id. You will be unable to use the purchased content on another apple id.
    Next time you change your apple id instead of creating an entire new apple id just change the primary email address to the email you would like to use.
    e.g. current apple id is [email protected] but you want to change it. what you do is:
    - go to appleid.apple.com
    - select manage apple id
    - sign in
    From here what you want to do is change/edit your current primary email which in this case is [email protected] Simply select edit and enter the new email you would like as your apple id. Lastly you will be sent a verification email to verify the email addres and TADA your done.

  • When accessing my itunes library of music I get the notation on all songs ...The song could not be located because the origional file could not be found...how can this be corrected or did Apple wipe out all the files

    wien I access Itunes I get the notification....the song could not be located because the origional filoe could not be found...I have over 2000
    songs in my library ....Does this mean they are all gone....How can one retrieve them???

    This missing song thing happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    Once you've sorted out the broken links I've written a script called DeDuper which can help remove unwanted duplicates. See this thread for background.
    tt2

Maybe you are looking for

  • Using USB drive between Leopard and Snow Leopard

    I have 2 USB drives that were formatted as Mac OS Extended (Journaled) on a Leopard Macbook Pro. I have had no troubles when using these drives between Leopard OS machines however when i try to copy files to them from a Snow Leopard machine an error

  • My phone turned off by itself while it was charging and it does not turn on

    Good morning, I have an iPhone 5 iOS 8.2 I believe. I connected my phone to the charger and went to sleep as usual and when I woke up it was off dead and since that I can not turn it on. I tried to turn it on several times but it did not work please

  • Enq: TX - row lock contention on dual

    Dear Team, In my database i can see lots of enq: TX wait in dual SID MODULE SQL_ID EVENT SECONDS_IN_WAIT BLOCKING_SESSION STATUS 2944 IAPPRAISOR_V20.fmx 5pjx5pj5xsmn7 enq: TX - row lock contention 38 2920 ACTIVE 3050 IAPPRAISOR_V20.fmx enq: TX - row

  • BAPI_DOCUMENT_CHECKOUT... get binary file content???

    Hello! When i want to check out documents, the Function BAPI_DOCUMENT_CHECKOUT2 only checks the documents out in the unix file system of the server the dms is running. Is there another possibility to get the file content by a JAVA Application to stor

  • FcpX en sony vg 20 (avchd); what about the 4 gig max.?

    I am interesting in the sony vg 20 but am unsure about: 1. what is the max. recordtime without any brake for a split second in it (caused by the max. gig?) by editting because i often record a whole theaterproduction and funeralservices. (now i use D