Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.