Last active
December 10, 2015 20:49
-
-
Save chitan/4490996 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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