Skip to content

Instantly share code, notes, and snippets.

@rwaldron
Created May 18, 2012 20:46
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwaldron/2727513 to your computer and use it in GitHub Desktop.
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
var d=document,v;d.body.appendChild(v=d.createElement("video"));navigator.getUserMedia({video:1},function(s){v.src=URL.createObjectURL(s)});
// 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)});
@rwaldron
Copy link
Author

@ralphholzmann
Copy link

MY EYES
MY EYES

@boazsender
Copy link

boaz

@iros
Copy link

iros commented May 18, 2012

@valueof
Copy link

valueof commented May 18, 2012

@zachleat
Copy link

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