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 e50bf29 commit 686f1fbCopy full SHA for 686f1fb
19 - Webcam Fun/scripts-FINISHED.js
@@ -9,10 +9,12 @@ function getVideo() {
9
.then(localMediaStream => {
10
console.log(localMediaStream);
11
12
-// DEPRECIATION :
13
-// The following has been depreceated by major browsers.
+// DEPRECIATION :
+// The following has been depreceated by major browsers as of Chrome and Firefox.
14
// video.src = window.URL.createObjectURL(localMediaStream);
15
-// Please refer to this:
+// Please refer to these:
16
+// Depreceated - https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
17
+// Newer Syntax - https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/srcObject
18
19
video.srcObject = localMediaStream;
20
video.play();
0 commit comments