bitmovin / bitmovin-player-web-integration-cmcd

MIT License
0 stars 1 forks source link

DASH loading failure when SegmentTimeline with $number format is used #6

Closed kazuhide closed 1 week ago

kazuhide commented 1 week ago

It seems that the manifest loading might fail depending on the DASH manifest format type. During testing, I found it always reproduces when using the DASH SegmentTimeline with $number. This can also be reproduced using the below DASH-IF’s test vector.

https://reference.dashif.org/dash.js/nightly/samples/dash-if-reference-player/index.html LIVE (Dynamic MPD) -> [DASH-IF] SegmentTimeline with $number (livesim)

When I validated the error logic, it seems that Bitmovin Player's player.getAvailableSegments() API (implemented in the preprocessHttpRequest callback here and here) throws an error when loading the DASH manifest. And since exception handling is not implemented for this, the network API can't process the request properly, resulting in an error.

Although further investigation of why API shows an error, it seems the loading failure can be avoided by implementing the exception handling.

kazuhide commented 1 week ago

fixed with https://github.com/bitmovin/bitmovin-player-web-integration-cmcd/pull/7