diff --git a/lib/hls/hls_parser.js b/lib/hls/hls_parser.js index cc8b08467b..638b1f59d1 100644 --- a/lib/hls/hls_parser.js +++ b/lib/hls/hls_parser.js @@ -2831,12 +2831,12 @@ shaka.hls.HlsParser = class { // Don't download the key object until the segment is parsed, to avoid a // startup delay for long manifests with lots of keys. keyInfo.fetchKey = async () => { - const keyUri = shaka.hls.Utils.constructSegmentUris( + const keyUris = shaka.hls.Utils.constructSegmentUris( getUris(), drmTag.getRequiredAttrValue('URI'), variables); const requestType = shaka.net.NetworkingEngine.RequestType.KEY; const request = shaka.net.NetworkingEngine.makeRequest( - [keyUri], this.config_.retryParameters); + keyUris, this.config_.retryParameters); const keyResponse = await this.makeNetworkRequest_(request, requestType); // keyResponse.status is undefined when URI is "data:text/plain;base64,"