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

Bugfix: Live Playlist Reload Interval #4940

Merged
merged 4 commits into from Oct 7, 2022

Conversation

mattzucker
Copy link
Contributor

This PR will...

Change the reload interval of a playlist to match the HLS spec. The playlist will now reload after waiting a timeout period equal to the target duration if there is an update, or equal to half of the target duration if there is no update to the playlist.

Why is this Pull Request needed?

The browser was previously requested updates to the playlist too frequently, which can put extra load on the server and is not in accordance with the HLS spec.

Are there any points in the code the reviewer needs to double check?

Verify that averagetargetduration is okay to be removed.

Resolves issues:

#4915

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

src/loader/level-details.ts Outdated Show resolved Hide resolved
@robwalch robwalch added this to the 1.3.0 milestone Oct 6, 2022
@robwalch robwalch merged commit b0c70f2 into video-dev:master Oct 7, 2022
@mattzucker mattzucker deleted the bugfix/live-playlist-reload branch October 11, 2022 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants