|
-
Product Designer
How to kill camera?
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).
Altruism does not exist. Sustainability must be made profitable.
-
Senior Member
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.
- The right of the People to create Flash movies shall not be infringed. -
-
Product Designer
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%).
Altruism does not exist. Sustainability must be made profitable.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|