See this demo: Share your screen and audio / video from a peer to peer connection!
Several threads are committed and tied to a peer single . AFAIK, sound with chromeMediaSource:screen is equal to " not yet allowed ."
Updated April 21, 2016
Now you can capture audio + screen using a single getUserMedia request in both Firefox and Chrome.
However, Chrome just supports the audio + tab , i.e. You cannot record full screen with sound.
Audio + tab means any chrome tab with a microphone.
Updated January 9, 2017
You can capture both audio and screen streams by running two parallel (UNIQUE) getUserMedia requests.
Now you can use the addTrack method to add audio tracks to the screen stream:
var audioStream = captureUsingGetUserMedia(); var screenStream = captureUsingGetUserMedia(); var audioTrack = audioStream.getAudioTracks()[0];
screenStream now has both audio and video tracks.
nativeRTCPeerConnection.addStream( screenStream ); nativeRTCPeerConnection.createOffer(success, failure, options);
source share