-
Notifications
You must be signed in to change notification settings - Fork 424
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: use playlist NAME when available as its ID #929
Conversation
Added a test and briefly reverting the previous changes to show that the test fails. Once travis shows the failure I'll bring the changes back. |
src/dash-playlist-loader.js
Outdated
@@ -43,7 +43,7 @@ export const parseMasterXml = ({ masterXml, srcUrl, clientOffset, sidxMapping }) | |||
sidxMapping | |||
}); | |||
|
|||
addPropertiesToMaster(master, srcUrl); | |||
addPropertiesToMaster(master, srcUrl, 'dash'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be true
instead of 'dash'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, I made the change locally but apparently forgot to save.
This is particularly used in DASH as the
NAME
is set from the Representation'sID
which is specified to be unique per period and that across periods, the representations with the same ID should be functionally equivalent.This is important because in DASH, across periods, it's possible for Representations to be re-ordered, and we want to make sure that the reference doesn't get messed up when the period updates.
It still sets up a reference to the playlist via the old name but if the ordering is changed it'll reference the incorrect playlist as it does now.
TODO