如何将本地视频流发送到多个远程对等点?我需要实例化一个吗PeerConnection
每个远程对等点?或者也可以一样PeerConnection
同时用于所有远程对等点?
根据用户dom
on irc.w3.org 上的 #webrtc http://irc.w3.org/,每个 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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)