diff --git a/lib/hls/hls_parser.js b/lib/hls/hls_parser.js index e78fce4bbf..e67c90f621 100644 --- a/lib/hls/hls_parser.js +++ b/lib/hls/hls_parser.js @@ -31,6 +31,7 @@ goog.require('shaka.util.Error'); goog.require('shaka.util.FakeEvent'); goog.require('shaka.util.LanguageUtils'); goog.require('shaka.util.ManifestParserUtils'); +goog.require('shaka.util.Networking'); goog.require('shaka.util.OperationManager'); goog.require('shaka.util.Pssh'); goog.require('shaka.media.SegmentUtils'); @@ -912,8 +913,11 @@ shaka.hls.HlsParser = class { playlist, middleSegment.tags, getUris); this.mapTagToInitSegmentRefMap_.clear(); if (initSegmentRef) { - const initSegmentRequest = shaka.net.NetworkingEngine.makeRequest( - initSegmentRef.getUris(), this.config_.retryParameters); + const initSegmentRequest = shaka.util.Networking.createSegmentRequest( + initSegmentRef.getUris(), + initSegmentRef.getStartByte(), + initSegmentRef.getEndByte(), + this.config_.retryParameters); const initType = shaka.net.NetworkingEngine.AdvancedRequestType.INIT_SEGMENT; const initResponse = await this.makeNetworkRequest_(