Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7385b81

Browse files
authored
Merge branch 'master' into master
2 parents ff12639 + 50773f9 commit 7385b81

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

19 - Webcam Fun/scripts-FINISHED.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ function getVideo() {
88
navigator.mediaDevices.getUserMedia({ video: true, audio: false })
99
.then(localMediaStream => {
1010
console.log(localMediaStream);
11-
video.src = window.URL.createObjectURL(localMediaStream);
11+
12+
// DEPRECIATION :
13+
// The following has been depreceated by major browsers as of Chrome and Firefox.
14+
// video.src = window.URL.createObjectURL(localMediaStream);
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
18+
19+
video.srcObject = localMediaStream;
1220
video.play();
1321
})
1422
.catch(err => {

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Feel free to submit a PR adding a link to your own recaps, guides or reviews!
4040
* [Yusong Notes](https://sky172839465.github.io/course/js30) Records Yusong JS 30 days note and demo :star2:
4141
* [Herminio Torres](https://github.com/herminiotorres/JavaScript30) lessons and tricks learned, and a [gh-page](https://herminiotorres.github.io/JavaScript30/) to see working all the mini-projects.
4242
* [Kizito](https://github.com/akhilome/)'s follow along [repo](https://github.com/akhilome/js30) with [completed challenges](https://akhilome.github.io/js30) and [notes](https://akhilome.github.io/js30/notes).
43-
43+
* [Thomas Mattacchione](https://github.com/tkjone/clojurescript-30) JavaScript 30 written in ClojureScript
4444

4545
## A note on Pull Requests
4646

0 commit comments

Comments
 (0)