A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How to kill camera?

  1. #1
    Product Designer keyone.it's Avatar
    Join Date
    Aug 2001
    Location
    Rome, Italy.
    Posts
    1,625

    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.

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    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. -

  3. #3
    Product Designer keyone.it's Avatar
    Join Date
    Aug 2001
    Location
    Rome, Italy.
    Posts
    1,625
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center