Skip to content

Instantly share code, notes, and snippets.

@kypflug
Created September 1, 2015 22:48
Show Gist options
  • Select an option

  • Save kypflug/fdf3a73df416d09e80c7 to your computer and use it in GitHub Desktop.

Select an option

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

gasp commented Nov 28, 2015

Copy link
Copy Markdown

@Globik

Globik commented Mar 13, 2019

Copy link
Copy Markdown

Where the whole script?

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