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: use playlist NAME when available as its ID #929

Merged
merged 16 commits into from
Sep 23, 2020
Merged

fix: use playlist NAME when available as its ID #929

merged 16 commits into from
Sep 23, 2020

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented Aug 14, 2020

This is particularly used in DASH as the NAME is set from the Representation's ID 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

  • verify specifically the change in ordering
  • update code if necessary
  • add tests if necessary

@gkatsev
Copy link
Member Author

gkatsev commented Aug 19, 2020

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.

@gkatsev gkatsev added this to the 2.2 milestone Sep 10, 2020
brandonocasey
brandonocasey previously approved these changes Sep 10, 2020
src/manifest.js Outdated Show resolved Hide resolved
src/manifest.js Outdated Show resolved Hide resolved
src/manifest.js Outdated Show resolved Hide resolved
@@ -43,7 +43,7 @@ export const parseMasterXml = ({ masterXml, srcUrl, clientOffset, sidxMapping })
sidxMapping
});

addPropertiesToMaster(master, srcUrl);
addPropertiesToMaster(master, srcUrl, 'dash');
Copy link
Contributor

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'

Copy link
Member Author

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.

@gkatsev gkatsev merged commit 2269464 into main Sep 23, 2020
@gkatsev gkatsev deleted the DASH-NAME branch September 23, 2020 17:26
gkatsev added a commit that referenced this pull request Sep 25, 2020
@gkatsev gkatsev restored the DASH-NAME branch September 25, 2020 16:58
gkatsev added a commit that referenced this pull request Sep 25, 2020
This reverts commit 2269464.

In testing, we noticed that the Angel One DASH video is broken, so we need to revert this change and fix it later.
@misteroneill misteroneill deleted the DASH-NAME branch November 21, 2022 21:47
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.

3 participants