How to share audio-only streams using RTCWeb APIs?

HOME © Muaz Khan . @WebRTCWeb . Github . Latest issues . What's New?

This tutorial is out-dated (written in 2013). Please check this tutorial instead:
If you're newcomer, newbie or beginner; you're suggested to try RTCMultiConnection.js or DataChannel.js libraries.

This document is for old chrome releases.

On getting local/remote media stream; you should use something like this:
audio.src = webkitURL.createObjectURL(stream);
audio.addEventListener('play', function () {
    this.muted = false;
    this.volume = 1;
}, false);;
This is JUST a simple (temporary) workaround.
Most importantly, you need to enable "Web Audio Input" flag via "chrome://flags".
Enable Web Audio Input flag


Enter your email too; if you want "direct" reply!