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: MPD not refreshed if minimumUpdatePeriod is 0 #954

Merged
merged 1 commit into from
Sep 24, 2020
Merged

Conversation

alex-barstow
Copy link
Contributor

Description

This fixes a bug caused by an oversight in #942. If the MPD@minimumUpdatePeriod is 0 in the first dynamic MPD we load, we should use the media's target duration as the MPD refresh interval, however we need to wait until a playlist has been selected before we can know DashPlaylistLoader.media().targetDuration, otherwise we get a TypeError.

Specific Changes proposed

If the minimumUpdatePeriod is 0 and we haven't loaded a playlist yet, wait for 'loadedplaylist' to setup the minimumUpdatePeriodTimeout_

@gkatsev gkatsev added this to the 2.2 milestone Sep 24, 2020
@gkatsev
Copy link
Member

gkatsev commented Sep 24, 2020

@gkatsev gkatsev merged commit 3a0682f into main Sep 24, 2020
@gkatsev gkatsev deleted the fix-mup-0 branch September 24, 2020 20:50
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