Skip to content

Commit

Permalink
fix(HLS): Skip EXT-X-PRELOAD-HINT without full byterange info
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Jun 13, 2023
1 parent 8a10a95 commit 9b255e0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/hls/manifest_text_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,13 @@ shaka.hls.ManifestTextParser = class {
partialSegmentTags.push(tag);
} else if (tag.name == 'EXT-X-PRELOAD-HINT') {
if (tag.getAttributeValue('TYPE') == 'PART') {
partialSegmentTags.push(tag);
if (tag.getAttributeValue('BYTERANGE-START') != null) {
if (tag.getAttributeValue('BYTERANGE-LENGTH') != null) {
partialSegmentTags.push(tag);
}
} else {
partialSegmentTags.push(tag);
}
} else if (tag.getAttributeValue('TYPE') == 'MAP') {
// Rename the Preload Hint tag to be a Map tag.
tag.setName('EXT-X-MAP');
Expand Down

0 comments on commit 9b255e0

Please sign in to comment.