Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throttle final playlist reloads when using DASH #277

merged 3 commits into from Nov 7, 2018


Copy link

@gesinger gesinger commented Oct 30, 2018


HLS already throttles reloads of the final playlist, however, DASH does not. This adds the throttling behavior to the DASH playlist loader.

To see the behavior:

  1. Go to
  2. Enter the source as: and the mime type as: application/dash+xml
  3. Click play
  4. Open the console and go to the network tab
  5. Click "Offline"

The failed requests will shoot up as fast as can be processed (since the retries are immediate).

The fix makes it so that retries are only made at half the target duration.

Requirements Checklist

  • Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
  • Reviewed by Two Core Contributors
Copy link

@ldayananda ldayananda left a comment

Looks good overall. I think it might make sense to lift this logic to MPC since isFinalRendition is defined there too. But, that can be done in a follow up PR.

test/dash-playlist-loader.test.js Show resolved Hide resolved
@gesinger gesinger merged commit 1c2887a into videojs:master Nov 7, 2018
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
netlify/videojs-http-streaming/deploy-preview Deploy preview ready!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants