Guest User

Untitled

a guest
Jan 20th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. function streamSuccess(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. // Hear thyself!
  9. mediaStreamSource.connect(audioContext.destination);
  10. }
Add Comment
Please, Sign In to add comment