Skip to content

Commit 80a3861

Browse files
authored
Merge branch 'master' into patch-1
2 parents 45b85d3 + 43e42de commit 80a3861

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ 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
* [Dave Follett's](https://github.com/davefollett) blog series, [A New Vue on #JavaScript30](https://davefollett.io/categories/a-new-vue-on-javascript30/), where he explores re-implementing #JavaScript30 projects using [Vue](https://vuejs.org).
43+
* [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).
44+
* [Thomas Mattacchione](https://github.com/tkjone/clojurescript-30) JavaScript 30 written in ClojureScript
4345

4446
## A note on Pull Requests
4547

0 commit comments

Comments
 (0)