diff --git a/lib/hls/hls_parser.js b/lib/hls/hls_parser.js index 93696f906c..57ad53bf82 100644 --- a/lib/hls/hls_parser.js +++ b/lib/hls/hls_parser.js @@ -2156,8 +2156,11 @@ shaka.hls.HlsParser = class { shaka.util.Error.Code.HLS_AES_128_INVALID_KEY_LENGTH); } + const algorithm = { + name: 'AES-CBC', + }; keyInfo.cryptoKey = await window.crypto.subtle.importKey( - 'raw', keyResponse.data, 'AES-CBC', true, ['decrypt']); + 'raw', keyResponse.data, algorithm, true, ['decrypt']); keyInfo.fetchKey = undefined; // No longer needed. };