Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion 6 19 - Webcam Fun/scripts-FINISHED.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ function getVideo() {
navigator.mediaDevices.getUserMedia({ video: true, audio: false })
.then(localMediaStream => {
console.log(localMediaStream);
video.src = window.URL.createObjectURL(localMediaStream);
/*
[Deprecation] URL.createObjectURL with media streams is deprecated and will be removed in M68, around July 2018. Please use HTMLMediaElement.srcObject instead.
video.src = window.URL.createObjectURL(localMediaStream);
*/
video.srcObject = localMediaStream;
video.play();
})
.catch(err => {
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.