You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the Producer has 3 encodings (so 3 simulcast spatial layers 0,1,2) and the encoding in the middle (encoding 1) has active: false, then when the consumer calls setPreferredLayers({ spatial: 1 }) mediasoup selects layer 2 instead of 0.
It's not easy to fix. We must also take into account the scenario in which (as above layer 1 doesn't exist) and user is in layer 2 and changes preferred layer to 0, etc.
Bug Report
Your environment
Issue description
If the
Producer
has 3 encodings (so 3 simulcast spatial layers 0,1,2) and the encoding in the middle (encoding 1) hasactive: false
, then when the consumer callssetPreferredLayers({ spatial: 1 })
mediasoup selects layer 2 instead of 0.This can be tested by doing this in the demo app:
The text was updated successfully, but these errors were encountered: