WebRTC Video/Audio stream, but Audio is not playing
<p>I am working on an Electron app with React.js that sets up some peer connections through webRTC. Everything looks good with the connections and the peers receive the stream, but the video on the peers end does no play the audio. Perhaps I'm just not understanding how getUserMedia works, but I thought setting constraints true for audio and video was enough.</p>

<p><strong>Relavent HTML (Peer)</strong></p>

<pre><code>&lt;video ref="video" autoplay&gt;&lt;/video&gt;
</code></pre>

<p><strong>A few snippets of the code getting the stream</strong></p>

<pre><code>// constraints
this.constraints = {
    video: true,
    audio: true,
};

this.sdpConstraints = {
    'mandatory': {
        'OfferToReceiveAudio': this.constraints.audio,
        'OfferToReceiveVideo': this.constraints.video
    }
};

...
// getting/setting local video
setupLocalMedia(){
    navigator.mediaDevices.getUserMedia(self.constraints)
    .then(function(stream){
        self.localVideo.src = window.URL.createObjectURL(stream);
        self.stream = stream;
        window.stream = stream;
     }).catch(self.errorHandler);
}

// adding the stream to the peer
peerConnection.onaddstream = function(event){
    peerVideo.src = window.URL.createObjectURL(event.stream); 
};
</code></pre>

<p>Again, all the connections are working just fine, and the video is streaming as expected, but no audio. Consoling the stream shows that the audio channel is enabled. Any ideas?</p>