Created
May 18, 2012 20:46
-
-
Save rwaldron/2727513 to your computer and use it in GitHub Desktop.
140 Character Photo Booth - ENABLE MEDIA SOURCE ON VIDEO IN CHROME CANARY UNDER ABOUT:FLAGS
This file contains 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
var d=document,v;d.body.appendChild(v=d.createElement("video"));navigator.getUserMedia({video:1},function(s){v.src=URL.createObjectURL(s)}); |
This file contains 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
// This one is prefixed, but is longer then 140 characters | |
var d=document,v;d.body.appendChild(v=d.createElement("video"));navigator.webkitGetUserMedia({video:1},function(s){v.src=webkitURL.createObjectURL(s)}); |
Author
rwaldron
commented
May 18, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment