ローカル ビデオ ストリームを複数のリモート ピアに送信するにはどうすればよいですか? PeerConnection
リモート ピアごとに 1 つインスタンス化する必要がありますか? またはPeerConnection
、すべてのリモート ピアに対して同時に同じものを使用できますか?
4041 次
1 に答える
13
irc.w3.org の #webrtcのユーザーdom
によると、各 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
于 2012-12-18T16:20:36.327 に答える