We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 14cadd4 + bd387a2 commit 93b2d7cCopy full SHA for 93b2d7c
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