diff --git a/lib/hls/hls_parser.js b/lib/hls/hls_parser.js index 56b3f3d317..a2ba5e9b34 100644 --- a/lib/hls/hls_parser.js +++ b/lib/hls/hls_parser.js @@ -820,8 +820,11 @@ shaka.hls.HlsParser = class { const requestType = shaka.net.NetworkingEngine.RequestType.SEGMENT; const segmentRequest = shaka.net.NetworkingEngine.makeRequest( segmentUris, this.config_.retryParameters); + const type = initSegmentRef ? + shaka.net.NetworkingEngine.AdvancedRequestType.INIT_SEGMENT : + shaka.net.NetworkingEngine.AdvancedRequestType.MEDIA_SEGMENT; const response = await this.makeNetworkRequest_( - segmentRequest, requestType); + segmentRequest, requestType, {type}); let contentMimeType = response.headers['content-type']; if (contentMimeType) { @@ -3214,9 +3217,9 @@ shaka.hls.HlsParser = class { const headRequest = shaka.net.NetworkingEngine.makeRequest( [middleSegmentUri], this.config_.retryParameters); headRequest.method = 'HEAD'; - + const type = shaka.net.NetworkingEngine.AdvancedRequestType.MEDIA_SEGMENT; const response = await this.makeNetworkRequest_( - headRequest, requestType); + headRequest, requestType, {type}); const contentMimeType = response.headers['content-type']; if (contentMimeType) {