Skip to content

Instantly share code, notes, and snippets.

@kypflug
Created September 1, 2015 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kypflug/fdf3a73df416d09e80c7 to your computer and use it in GitHub Desktop.
Save kypflug/fdf3a73df416d09e80c7 to your computer and use it in GitHub Desktop.
navigator.MediaDevices.getUserMedia ({
"audio": true,
"video": {
width: 640,
height: 360,
facingMode: "user"
}
}).then(
gotStream
).catch(
gotMediaError
);
function gotStream(stream) {
var mediaStreamLocal = stream;
}
@gasp
Copy link

gasp commented Nov 28, 2015

@Globik
Copy link

Globik commented Mar 13, 2019

Where the whole script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment