Webrtc 向多个远程对等方发送本地流

Webrtc 向多个远程对等方发送本地流,webrtc,Webrtc,如何将本地视频流发送到多个远程对等点?我是否需要为每个远程对等点实例化一个PeerConnection?或者相同的PeerConnection可以同时用于所有远程对等方吗?根据用户domon,每个PeerConnection都与单个远程对等方关联。开发人员负责与多个对等连接共享同一个流实例: <Cow_woC> Can a single PeerConnection connect to multiple remote peers, or only a single one at a

如何将本地视频流发送到多个远程对等点?我是否需要为每个远程对等点实例化一个
PeerConnection
?或者相同的
PeerConnection
可以同时用于所有远程对等方吗?

根据用户
dom
on,每个PeerConnection都与单个远程对等方关联。开发人员负责与多个
对等连接共享同一个流实例

<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
单个对等连接可以连接到多个远程对等点,还是一次只能连接一个?如果我想将同一视频流到多个远程对等点,我该怎么做?
Cow_woC,您需要管理多个PeerConnection对象
并将视频流插入其中的每一个
dom:如何与多个PeerConnections共享摄像头提要?是否允许getUserMedia()多次返回(并共享)同一资源?
dom:还是我负责保留引用并将其传递给多个对等连接?
后者

帮了大忙!非常感谢。