如何将本地视频流发送到多个远程对等端?我是否需要为PeerConnection每个远程对等实例化一个?或者可以同时PeerConnection用于所有远程对等体?
Gil*_*ili 13
根据irc.w3.orgdom上#webrtc上的用户,每个PeerConnection都与一个远程对等体相关联.开发人员负责与多个共享同一个流实例PeerConnections:
<Cow_woC> Can a single PeerConnection connect to multiple remote peers, or only a single one at a time? If I want to stream the same video to multiple remote peers, what am I supposed to do?
<dom> Cow_woC, you need to manage several PeerConnection objects
<dom> and plug your video stream to each of them
<Cow_woC> dom: How do I share the camera feed with multiple PeerConnections? Is getUserMedia() allowed to return the same resource (and share it) multiple times?
<Cow_woC> dom: Or am I responsible for keeping the reference around and passing it to multiple PeerConnections?
<dom> the latter
Run Code Online (Sandbox Code Playgroud)