-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use playlist NAME when available as its ID (#929)
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.
- Loading branch information
Showing
4 changed files
with
101 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0"?> | ||
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:full:2011" minBufferTime="1.5" mediaPresentationDuration="PT5S"> | ||
<Period> | ||
<BaseURL>main/</BaseURL> | ||
<AdaptationSet mimeType="video/mp4"> | ||
<BaseURL>video/</BaseURL> | ||
<Representation id="720p" bandwidth="2400000" width="1280" height="720" codecs="avc1.420015"> | ||
<BaseURL>720/</BaseURL> | ||
<SegmentTemplate media="$RepresentationID$-segment-$Number$.mp4" initialization="$RepresentationID$-init.mp4" duration="10" timescale="10" startNumber="0" /> | ||
</Representation> | ||
<Representation id="1080p" bandwidth="6800000" width="1920" height="1080" codecs="avc1.420015"> | ||
<BaseURL>1080/</BaseURL> | ||
<SegmentTemplate media="$RepresentationID$-segment-$Number$.mp4" initialization="$RepresentationID$-init.mp4" duration="10" timescale="10" startNumber="0" /> | ||
</Representation> | ||
</AdaptationSet> | ||
<AdaptationSet mimeType="audio/mp4"> | ||
<BaseURL>audio/</BaseURL> | ||
<Representation id="audio" bandwidth="128000" codecs="mp4a.40.2"> | ||
<BaseURL>720/</BaseURL> | ||
<SegmentTemplate media="segment-$Number$.mp4" initialization="$RepresentationID$-init.mp4" duration="10" timescale="10" startNumber="0" /> | ||
</Representation> | ||
</AdaptationSet> | ||
</Period> | ||
</MPD> |