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

fix: don't adjust mediaPresentationDuration by timescale for segment … #94

Merged
merged 1 commit into from
Mar 31, 2020

Conversation

gesinger
Copy link
Contributor

…duration when using SegmentBase

When using SegmentBase, there is only one segment. If the duration is
not present, sourceDuration is used, which comes from
mediaPresentationDuration.

Previously, sourceDuration was being divided by the timescale, but
mediaPresentationDuration is defined in the DASH spec as s:duration,
which follows ISO 8601. It doesn't need to be adjusted based on the
timescale.

This change fixes the use of sourceDuration for SegmentBase by not
performing that division.

…duration when using SegmentBase

When using SegmentBase, there is only one segment. If the duration is
not present, sourceDuration is used, which comes from
mediaPresentationDuration.

Previously, sourceDuration was being divided by the timescale, but
mediaPresentationDuration is defined in the DASH spec as s:duration,
which follows ISO 8601. It doesn't need to be adjusted based on the
timescale.

This change fixes the use of sourceDuration for SegmentBase by not
performing that division.
@gesinger gesinger merged commit 40cdd00 into videojs:master Mar 31, 2020
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.

2 participants