Dash.js: Preload control

Created on 1 Nov 2016  路  4Comments  路  Source: Dash-Industry-Forum/dash.js

It would be nice to have control on manifest & segment preload. Supporting both preload attribute of video tag and allowing programmatic way to change it, like a method of MediaPlayer instance.

This feature could help control bandwidth consumption, which is quite important on mobile.

Question

Most helpful comment

Hey, sorry, I didn't test it. Will do in a few days and post results here. Meanwhile, we'd prefer more explicit API for this: player.setAutoStartLoad(true|false), player.startLoad() and player.stopLoad(), like in hls.js.

All 4 comments

I believe you can set autoPlay to false and setScheduleWhilePaused to false. Call attachSource specifically when you want to load the manifest and fragments will not load until user clicks play.

I believe there is an issue with the preload attribute being set and attaching medasource but I can not remember what it was.

Note that in an MSE world, the media element preload attribute is meaningless and is ignored (see: https://w3c.github.io/media-source/#mediasource-attach).

In the bad old days we used to have to set preload to a specific value to make Firefox work but that was a long time ago and has not been required for ages.

@ruslandinov Did the advice in @AkamaiDASH's comment solve this issue or are you still looking for more functionality in this area?

Hey, sorry, I didn't test it. Will do in a few days and post results here. Meanwhile, we'd prefer more explicit API for this: player.setAutoStartLoad(true|false), player.startLoad() and player.stopLoad(), like in hls.js.

Was this page helpful?
0 / 5 - 0 ratings