Skip to content

Instantly share code, notes, and snippets.

@chitan
Last active December 10, 2015 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chitan/4490996 to your computer and use it in GitHub Desktop.
Save chitan/4490996 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>getUserMedia for Firefox</title>
<script>
navigator.mozGetUserMedia(
{video:true},
function(stream) {
var video = document.getElementById("video");
video.mozSrcObject = stream;
video.play();
},
function(err){});
</script>
</head>
<body>
<video id="video" width="640" height="480" autoplay="true" controls="true"></video>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment