limitBitrateByPortal
option misbehaves for unsorted Representation mpd files
#3955
Closed
5 tasks done
Environment
Steps to reproduce
bandwidth
/width
) Representation, sample:streaming.abr.limitBitrateByPortal
optionObserved behavior
Resize window and notice abr is not functioning as expected - the minimum bandwidth that has a width larger than current portal size
It seems the reason behind is in
AbrController
,_checkPortalSize
just assumesrepresentation
is a sorted array (source) based on bandwith/width from smaller to larger. Howeverrepresentation
can be unsorted - it comes fromadapter.getAdaptationForType(streamInfo.index, type, streamInfo).Representation
(source).Dash'll need to use
adapter.getAdaptationForType(streamInfo.index, type, streamInfo).Representation_asArray
instead. And this change solves the issue for me in my local testing.The other occurrence of the
Representation
will probably need the same change (source)Console output
Unrelated
Expected behavior
limitBitrateByPortal
should behave correctly for mpd with unsorted RepresentationsThe text was updated successfully, but these errors were encountered: