Skip to content

Instantly share code, notes, and snippets.

@kevincennis
Created July 19, 2013 23:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevincennis/6043052 to your computer and use it in GitHub Desktop.
Save kevincennis/6043052 to your computer and use it in GitHub Desktop.
getUserMedia
var ctx = new webkitAudioContext();
navigator.webkitGetUserMedia({audio: true}, success, err);
function success( stream ) {
var src = ctx.createMediaStreamSource(stream);
src.connect(ctx.destination);
}
function err( e ) {
console.log(e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment