-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix #492 SimulcastConsumer cannot switch layers if initial tsReferenc… #1459
Conversation
…sReferenceSpatialLayer disappears
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love this PR. Thanks. Will merge next week and release.
Please add an entry in CHANGELOG file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There is a bug but unclear whether it's introduced by this PR or not: If the Producer has 3 encodings (so 3 simulcast spatial layers 0,1,2) and the encoding in the middle (encoding 1) has Nah, confirmed that it also happens in v3 branch. |
With this change can it happen that we start forwarding spatial layer 2 before having a SR for that layer and then we switch to other layer when we receive a SR for that new layer? I that case how can mediasoup maintain continuous timestamps if it doesn't have the SR of layer 2? |
Nothing has changed regarding that. If no SR has been received for any spatial layer (simulcast stream) mediasoup selects the first available stream. If layer SR arrive for one or more layers then mediasoup could of course switch to them if there is SR for that layer and if that spatial layer is equal or lower than preferred spatial layer. HOWEVER while testing this PR locally I've seen and reported a bug that was there since ever. Check the most recent created issue in GH. |
…eSpatialLayer disappears
We found the same issue as #492 described . If we do't get initial tsReferenceLayer SR , we can't switch latter.
Fixes #492