We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14cadd4 commit bd387a2Copy full SHA for bd387a2
step-01/js/main.js
@@ -8,8 +8,12 @@ const mediaStreamConstraints = {
8
// Video element where stream will be placed.
9
const localVideo = document.querySelector('video');
10
11
+// Local stream that will be reproduced on the video.
12
+let localStream;
13
+
14
// Handles success by adding the MediaStream to the video element.
15
function gotLocalMediaStream(mediaStream) {
16
+ localStream = mediaStream;
17
localVideo.srcObject = mediaStream;
18
}
19
0 commit comments