Stop/Close webcam and remove publish stream display with Stop button clicked

Goji

New Member
Hi,

Is there anyway to stop/close the webcam with stop button clicked? In the demo page, e.g. Streamer. Once in Publishing status, webcam will be activated and local video will be display the image. However, when stop button clicked, webcam still activated with image still display in local video section.

Thanks.
 

Max

Administrator
Staff member
Yes you can release camera using releaseLocalMedia function of Web SDK.

Video display
Code:
<div id="myVideoDiv"></div>
Release media
Code:
var videoDiv = document.getElementById('myVideoDiv');
Flashphoner.releaseLocalMedia(videoDiv);
 
Top