Chrome won't play WebAudio getUserMedia via WebRTC/Peer.js

后端 未结 3 1931
情书的邮戳
情书的邮戳 2020-12-10 08:41

I want to make a simple audio only stream over WebRTC, using Peer.js. I\'m running the simple PeerServer locally.

The following works perfectly fine in Firefox 30, b

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-10 09:21

    I was unable to play the stream using web audio but I did manage to play it uses a basic audio element:

     var audio = new Audio();                                                  
     audio.src = (URL || webkitURL || mozURL).createObjectURL(remoteStream);
     audio.play();
    

提交回复
热议问题