Ignore disabled when adpative stream is enabled. (#2463)
* Ignore `disabled` when adpative stream is enabled. Due to interplay of adaptive stream/visibility/dynacast, when adaptive stream is enabled, subscribed track forces visibility and starts streaming at low quality. This would trigger a render on client and trigger a visibility update. So, even if a migration disables a track, upon migration complete and subscription bind, ignore disable and stream. * don't hold lock during callback * don't need to store pubMuted * don't need to hold settings lock for pub muted
This commit is contained in:
@@ -404,10 +404,7 @@ func (t *MediaTrackSubscriptions) DebugInfo() []map[string]interface{} {
|
||||
subscribedTrackInfo := make([]map[string]interface{}, 0)
|
||||
for _, val := range t.getAllSubscribedTracks() {
|
||||
if st, ok := val.(*SubscribedTrack); ok {
|
||||
dt := st.DownTrack().DebugInfo()
|
||||
dt["PubMuted"] = st.pubMuted.Load()
|
||||
dt["SubMuted"] = st.subMuted.Load()
|
||||
subscribedTrackInfo = append(subscribedTrackInfo, dt)
|
||||
subscribedTrackInfo = append(subscribedTrackInfo, st.DownTrack().DebugInfo())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user