Skip to main content
November 11, 2013
Question

Webcam runs in background even after the netstream is closed

  • November 11, 2013
  • 1 reply
  • 577 views

Hi All,

We are having an application for capturing live video from presenter and broadcasting to a viewer. We have coded this using flex as3 and the server is Adobe Media Server. When a broadcasting happens and suddenly the presenter stops the video, the video display becomes blank as i have given the code and also i have closed the netstream by giving

videoDisplay.visible = false;

videoDisplay.attachCamera(null);

_ns.close();

_video.attachCamera(null);

_ns.attachCamera(null);

_ns.attachAudio(null);

_video = null;

But still the webcam runs in background and capturing the video. I can see the increase in size of video in the server. Is there any possible way to stop webcam from capturing the video when it si set to off?

Thanks in advance

Arasakumar.

    This topic has been closed for replies.

    1 reply

    Known Participant
    November 13, 2013

    Possibly the Camera object is still attached to the NetStream.

    Add this to a NetStream.Status.Closed event handler:

    netSream.attachCamera(null);

    I hope this helps.