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

Parse TARGETDURATION as a decimal-integer assigned a minimum value of 1 #5159

Merged
merged 1 commit into from Jan 18, 2023

Conversation

robwalch
Copy link
Collaborator

@robwalch robwalch commented Jan 14, 2023

This PR will...

Parse TARGETDURATION as a decimal-integer assigned a minimum value of 1.

Why is this Pull Request needed?

TARGETDURATION is defined as an upper bound on the duration of all Media Segments in the Playlist. HLS.js already only matches the decimal-integer portion of this tags value here (TARGETDURATION|VERSION): *(\d+)/).

If an Media Playlist provides a sub-second value, HLS.js should use a value of 1 to avoid any errors in handling live playlist reload (#4464).

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

computeReloadInterval already uses the last segment duration when shorter than target duration and near live edge.

Resolves issues:

Follow up on #4464

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

@robwalch robwalch added this to the 1.4.0 milestone Jan 14, 2023
@robwalch robwalch merged commit b7aaa54 into master Jan 18, 2023
@robwalch robwalch deleted the bugfix/target-duration-integer branch January 18, 2023 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant