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.
I have opened a bug for this, which Adobe appears to say is an enhancement.