Video-Meeting icon indicating copy to clipboard operation
Video-Meeting copied to clipboard

web cam light is still on, when I click the close camera button

Open shreyshreyansh opened this issue 3 years ago • 1 comments

shreyshreyansh avatar Jun 27 '21 06:06 shreyshreyansh

#39

for starting the web cam

function startRecording(){
 navigator.mediaDevices
      .getUserMedia({ video: { height: 300, width: 300 } })
      .then((stream) => {
  window.localStream = stream;
 }
}

for stoping the webcam

function stopRecording(){
localStream.getVideoTracks()[0].stop();
}

devjs1000 avatar Jan 12 '22 00:01 devjs1000