WebRTC - single stream exchange with multiple peers

I have three partners:

  • PeerA

    stream local media for other users
  • PeerB

    takes a stream and is on the same computer as PeerA.
  • PeerC

    takes a stream and is on another machine.

All peers are the last. The signaling server is working - I can see that all descriptions are sent and received as I expected.

The problem I'm running into is that the event is PeerC

onTrack

fired and I have access to the same stream

(same id

) that it succeeds with PeerB

- but for some reason, the stream never appears in the DOM.

My code is based on this: https://github.com/webrtc/samples/blob/gh-pages/src/content/peerconnection/multiple/js/main.js

What could be causing this?

+1
webrtc


source to share


No one has answered this question yet

See similar questions:

3
WebRTC - Failed to set sdp remote response: Called in wrong state: STATE_INPROGRESS
0
Problem for multi-peer streaming in WebRTC?

or similar:

ten
"ICE failed" in Chrome-Firefox WebRTC
8
WebRTC sometimes gives a black screen
4
WebRTC PeerConnection Client Node
2
Playing Videos with WebRTC Sent Datachannel
1
Share using getScreenId.js in WebRTC for two peers
1
Processing audio streams from WebRTC peer connections on the server
0
Cannot get multiple peer-to-peer connections working in Firefox.
0
Using WebRTC with Socket.io
0
WebRTC ontrack on subscriber side does not fire after response
0
Problem for multi-peer streaming in WebRTC?



All Articles
Loading...
X
Show
Funny
Dev
Pics