diff --git a/lib/hls/manifest_text_parser.js b/lib/hls/manifest_text_parser.js index b37cc99949..71a2f21cf3 100644 --- a/lib/hls/manifest_text_parser.js +++ b/lib/hls/manifest_text_parser.js @@ -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');