Skip to content

Commit

Permalink
fix(HLS): Skip EXT-X-PRELOAD-HINT without full byterange info (shaka-…
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Jun 14, 2023
1 parent f6b0356 commit 32d141d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/hls/manifest_text_parser.js
Expand Up @@ -158,7 +158,15 @@ shaka.hls.ManifestTextParser = class {
partialSegmentTags.push(tag);
} else if (tag.name == 'EXT-X-PRELOAD-HINT') {
if (tag.getAttributeValue('TYPE') == 'PART') {
partialSegmentTags.push(tag);
// Note: BYTERANGE-START without BYTERANGE-LENGTH is being
// ignored.
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 32d141d

Please sign in to comment.