-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to addTracks to a connection? #801
Labels
client
related to peerjs client
Comments
Did you happen to figure out a solution for this? |
same problem |
1 similar comment
same problem |
up please ;) |
please help |
Same problem here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to stream multiple video and audio streams from one peer to the other over a single connection. From what I can gather reading WebRTC docs this can be acheived by called RtcPeerConnection.addTrack on one side of the connection as long as the other side has a track listener (e.g.
pc.addEventListener('track', (evt) => ...)
).However, this doesn't seem to work. My code is as follows:
Caller:
Receiver:
Am I misunderstanding something here? Is it even possible to add multiple streams to a single connection or do I need to open a new connection for each stream? If there are any examples of doing something similar that would be great.
The text was updated successfully, but these errors were encountered: