Advertisement
kernel_memory_dump

Untitled

Apr 25th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function gotStream(stream) {
  2.     window.AudioContext = window.AudioContext || window.webkitAudioContext;
  3.     var audioContext = new AudioContext();
  4.  
  5.     // Create an AudioNode from the stream
  6.     var mediaStreamSource = audioContext.createMediaStreamSource(stream);
  7.  
  8.     // Connect it to destination to hear yourself
  9.     // or any other node for processing!
  10.     mediaStreamSource.connect(audioContext.destination);
  11. }
  12.  
  13. navigator.getUserMedia({audio:true}, gotStream);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement