Closed james14123 closed 5 years ago
You are only listening to the signal
event on one peer. Both peers will fire the signal
event, and the data from this event needs to be passed into the other peer through peer.signal()
.
If you're going to manually pass signaling data like this, you should disable trickle with trickle:false
in both peer's options. Otherwise you will need to pass dozens of signalling messages.
ohh i see! Is there any simple way to pass signaling data ?
You're almost there, just make sure all signal
events are listened to on both sides and that the data makes into a call to signal()
on the other peer.
Also keep in mind that each peer can only connect to one other peer, you don't want to reuse signaling data for different peers. (Not familiar with firebase, so not sure if that's happening here).
Closing due due to inactivity, and not sure this is an issue. Feel free to continue commenting.
hello i'm new!
I choose the Firebase to transfer data between peer and peer. It seems like the connection is established But the stream doesn't play :( Is anything i missed?
thanks!