File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ shaka.drm.DrmEngine = class {
308
308
* @param {!Array<MediaKeySystemMediaCapability> } videoCapabilities
309
309
* @return {!Promise }
310
310
*/
311
- initForRemoval ( keySystem , licenseServerUri , serverCertificate ,
311
+ async initForRemoval ( keySystem , licenseServerUri , serverCertificate ,
312
312
audioCapabilities , videoCapabilities ) {
313
313
const mimeTypes = [ ] ;
314
314
if ( videoCapabilities . length ) {
@@ -336,6 +336,12 @@ shaka.drm.DrmEngine = class {
336
336
const drmInfo = makeDrmInfo ( audioCapabilities [ 0 ] . encryptionScheme || '' ) ;
337
337
variant . audio . drmInfos . push ( drmInfo ) ;
338
338
}
339
+ // We should get the decodingInfo results for the variants after we filling
340
+ // in the drm infos, and before queryMediaKeys_().
341
+ await shaka . util . StreamUtils . getDecodingInfosForVariants ( [ variant ] ,
342
+ /* usePersistentLicenses= */ true , this . srcEquals_ ,
343
+ /* preferredKeySystems= */ [ ] ) ;
344
+ this . destroyer_ . ensureNotDestroyed ( ) ;
339
345
return this . queryMediaKeys_ ( /* variants= */ [ variant ] ) ;
340
346
}
341
347
You can’t perform that action at this time.
0 commit comments