-
Notifications
You must be signed in to change notification settings - Fork 13
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
[BUG] issues with simulcast layers #30
Comments
I can trigger it to work from mobile (ios) client side by putting peer in fullscreen and holding the phone horizontally. That will trigger a new setConsumerPreferredLayers from room-server to media-node and it will start to work. This is not only relevant for mobile. I can reproduce the issue on desktop if I have a small enough window when remote peer starts its webcam. See edumeet/edumeet-client#116 |
If I disable simulcast I can't reproduce the issue. Mediasoup logs when the issue occur:
Target layers being set to null can happen for a number of reasons. |
Seems like a lot of changes related to preferred consumer layers seems to be the culprit. |
I'm absolutely not saying this is a bug in mediasoup, but we can learn from this issue: |
Describe the bug
When developing locally, if I join on mobile (ios), and then join with another peer and start webcam, the serverside consumer emits layerschange event with layers set to null.
From Mediasoup documentation: "When there is no available bitrate for this consumer (even for the lowest layers) so the event fires with null as argument" https://mediasoup.org/documentation/v3/mediasoup/api/#consumer-on-layerschange
Perhaps that's the case, but I'm, on high speed wifi so obviously eventually there will be bandwidth. No new layerschange event is emitted.
If I join with a third peer and start the webcam, a new layerschange event is emitted in the consumer and it start. The new consumer for the third peer also works without problems.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
If there is no bandwidth, I would expect a new layerschange event to be emitted once there is.
The text was updated successfully, but these errors were encountered: