How do I kill the camera stream?
I tried setting to null the only references to Camera.getCamera() and Video(), and removing Video child.
Video obviously disappears, but camera remains on (and CPU load high).
Printable View
How do I kill the camera stream?
I tried setting to null the only references to Camera.getCamera() and Video(), and removing Video child.
Video obviously disappears, but camera remains on (and CPU load high).
Have you tried to delete the reference to the camera?
var camera:Camera = Camera.getCamera();
delete camera;
Of course you also need to remove any listeners.
I first remove the video child from display, then I remove the video listeners, then overwrite the reference to the video object, then delete the reference.
Then I remove camera listeners, then overwrite the reference to the camera object, then I delete the reference.
Doesn't change a thing.
The green light on the webcam just doesn't switch off (and the CPU stays upat 70%).