WebRTC samples getUserMedia, audio only

Warning: if you're not using headphones, pressing play will cause feedback.

Render the audio stream from an audio-only getUserMedia() call with an audio element.

The MediaStream object stream passed to the getUserMedia() callback is in global scope, so you can inspect it from the console.

View source on GitHub