Skip to content

Commit 686f1fb

Browse files
author
Prakhar Saxena
authored
Update scripts-FINISHED.js
1 parent e50bf29 commit 686f1fb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

19 - Webcam Fun/scripts-FINISHED.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ function getVideo() {
99
.then(localMediaStream => {
1010
console.log(localMediaStream);
1111

12-
// DEPRECIATION :
13-
// The following has been depreceated by major browsers.
12+
// DEPRECIATION :
13+
// The following has been depreceated by major browsers as of Chrome and Firefox.
1414
// video.src = window.URL.createObjectURL(localMediaStream);
15-
// Please refer to this:
15+
// 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
1618

1719
video.srcObject = localMediaStream;
1820
video.play();

0 commit comments

Comments
 (0)