-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
Sending on Multiple Tracks #1209
Comments
I've included the signaling messages in case they could help. They look correct to me... Thanks! Offer:
Answer:
|
SSRCs must be set in the description by the sender of the stream, not by the receiver. Here, since the sender answers, you need to add the SSRC to the track media description in the pc->onTrack([mySSRC](shared_ptr<Track> track) {
auto description = track->description();
description.addSSRC(mySSRC, "video");
track->setDescription(std::move(description));
}); |
That did the trick, thanks so much! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi again,
I am having trouble sending/receiving more than one video track at a time.
If peer A sends a single video track to peer B or vice versa, everything works perfectly. However, if peer B also sends video to peer A at the same time (on a separate track), only one of the peers receives video. If peer A tries to send video to peer B over two separate tracks at the same time, peer B does not receive anything. The tracks have unique MIDs, SSRCs, etc. Also, the onOpen event fires for both tracks, and both remain open throughout the test.
To find out where the messages are stopping, I wrote custom MediaHandlers that just print whenever new data passes through. I placed these at the end of the sending chain (i.e. the last thing to happen before sending) and the beginning of the receiving chain (the first thing that happens upon receipt of new data). The sending handlers print as normal at a high rate, but the receiving handlers never print a single message when there is more than one track. Thus, it seems the data is going missing between being sent by peer A and being received by peer B.
Do you have any idea what could be happening? I'm pretty stuck...
Thanks!
David
Edit: I'm testing this where peer A is a Windows 11 laptop and peer B is an Ubuntu 20.04 machine connected to Ethernet. If the Windows is sending 2 streams, they are received and shown on the Ubuntu. But if the Ubuntu is sending two streams, nothing reaches the laptop. If both are sending one and receiving one, only the Windows receives video.
The text was updated successfully, but these errors were encountered: