Back to Webrtc Experiment

How to share audio

docs/how-to-share-audio-only-streams.html

latest1.0 KB
Original Source

This tutorial is out-dated (written in 2013). Please check this tutorial instead: https://codelabs.developers.google.com/codelabs/webrtc-web/#0

| 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);
audio.play();

| | This is JUST a simple (temporary) workaround. | | Most importantly, you need to enable "Web Audio Input" flag via "chrome://flags". | | |

Feedback

Send MessageEnter your email too; if you want "direct" reply!