0 Replies Latest reply on May 3, 2013 2:12 PM by mmah-umd

    How do you turn off Camera?

    mmah-umd

      In an AIR application, how do you turn off the camera once it has been activated? I remove all references to Video objects associated with the camera, unattach the camera from NetStreams, and remove references to the camera object. This does not deactivate the camera; it seems to be necessary to run the garbage collector too. The trouble is that running the program in the debugger with the manual garbage collector action causes the application to be unresponsive for >30 seconds, which is extremely annoying. Is there a simpler way to turn off the camera?

       

      For reference, I am testing on a MacBook that has an LED for when the camera is in use.

       

      EDIT:

      I have opened a bug for this, which Adobe appears to say is an enhancement.

      https://bugbase.adobe.com/index.cfm?event=bug&id=3552765