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

Make more robust the period parsing. Add unit tests #2619

Merged
merged 3 commits into from Jun 6, 2018

Conversation

epiclabsDASH
Copy link
Contributor

Partial refactor of getRegularPeriods method of DashManifestModel. Added a new check to cover situations in which multi period streams, for static assets, are not defining start and duration attributes of any of their periods. This avoids dash.js to throw exceptions, and logs a warning message to notify the user about the issue.

Note: Having this situation implies a wrong mpd and that, even with this fix, there will be timing inconsistencies after the first period. However, IMHO, I prefer dash.js to play something whenever is possible. Once we add the flag to dash.js to allow/disallow playback of streams/assets out of DASH IOP guidelines, I will revisit this.

Added unit tests to cover this and regular situations (multiple combinations of period with combinations of start and duration attributes).

@epiclabsDASH epiclabsDASH added this to the 2.8 milestone Jun 5, 2018
@epiclabsDASH epiclabsDASH merged commit 9674c63 into Dash-Industry-Forum:development Jun 6, 2018
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

2 participants