Skip to content

Commit

Permalink
Revert "make it backwards compatible"
Browse files Browse the repository at this point in the history
This reverts commit a93e3e6.
  • Loading branch information
gkatsev committed Aug 19, 2020
1 parent 2017d43 commit 6393040
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,14 @@ export const setupMediaPlaylists = (master) => {

while (i--) {
const playlist = master.playlists[i];
const id = createPlaylistID(i, playlist.uri);

setupMediaPlaylist({
playlist,
// DASH Representations can change order across refreshes which can make referring to them by index not work
// Instead, use the provided id, available via the NAME attribute.
id: playlist.attributes && playlist.attributes.NAME || id
id: playlist.attributes && playlist.attributes.NAME || createPlaylistID(i, playlist.uri)
});
playlist.resolvedUri = resolveUrl(master.uri, playlist.uri);
master.playlists[id] = playlist;
master.playlists[playlist.id] = playlist;
// URI reference added for backwards compatibility
master.playlists[playlist.uri] = playlist;
Expand Down

0 comments on commit 6393040

Please sign in to comment.