Open fxxqq opened 6 years ago
function stopStream() { if (window.stream) { window.stream.getTracks().forEach(function (track) { track.stop(); }); } }
function gotStream(stream) { window.stream = stream; // make stream available to console videoElement.srcObject = stream; }