Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function streamSuccess(stream) {
- window.AudioContext = window.AudioContext || window.webkitAudioContext;
- var audioContext = new AudioContext();
- // Create an AudioNode from the stream
- var mediaStreamSource = audioContext.createMediaStreamSource(stream);
- // Hear thyself!
- mediaStreamSource.connect(audioContext.destination);
- }
Add Comment
Please, Sign In to add comment