Video-Meeting
Video-Meeting copied to clipboard
web cam light is still on, when I click the close camera button
#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();
}