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
Client A stops publishing the video layer Client B is subscribed to
Client B sees Client A's video stop
After a while (~10 seconds), Client B get a viewer layer event
Layer events are not triggered directly after a layer change occurs, if A client is subscribed to a certain video layer, and that layer becomes unavailable, the clients video stops until the next layer event where the application can select a layer that is still active.
To Reproduce
Steps to reproduce the behavior:
Open one publisher with simulcast enabled
Subscribe to the publisher
Observe video stops/stalls intermittently (more frequent with unstable or slow internet)
Expected behavior
Client A Broadcasts with simulcast ENABLED
Client B Subscribes to Client A
Client A stops publishing the video layer Client B is subscribed to
Client B receives a "layer" event and selects a new layer to display
Screenshots
In the screenshot the two viewer streams are frozen because both publisher layers went inactive, and the viewers had not received a new "layers" event.
Environment (please complete the following information):
OS: Windows 11
Browser: Chrome
Version: 100.0.4896.12
The text was updated successfully, but these errors were encountered:
Detecting layer change is far from obvious in webrtc.
The current behavior is to trigger the layer events once each 5s so what you are describing is the expected behavior, so that's why I have removed the bug tag and replaced by the enhancement one.
By default webrtc disables simulcast layer in descending order based on the bitrate estimation, and I think it only disables the top one at most.
Note that you don't need to specify the LayerInfo when doing projection, and in that case the server will automatically switch between the available simulcast layers based on the bandwidth estimation.
Typically, what you would do is to use the LayerInfo to select the non top-most simulcast layer so the bandwidth is not allocated to this projection but to other more important ones.
Version affected
0.1.26
Describe the bug
Scenario:
Layer events are not triggered directly after a layer change occurs, if A client is subscribed to a certain video layer, and that layer becomes unavailable, the clients video stops until the next layer event where the application can select a layer that is still active.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
In the screenshot the two viewer streams are frozen because both publisher layers went inactive, and the viewers had not received a new "layers" event.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: