Skip to content

Commit

Permalink
Fix AES-128 key sharing across playlists (#5255)
Browse files Browse the repository at this point in the history
  • Loading branch information
yajin2021 authored and robwalch committed Feb 28, 2023
1 parent a056f08 commit 747e15f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/loader/key-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ export default class KeyLoader implements ComponentAPI {
case 'status-pending':
case 'usable':
case 'usable-in-future':
return keyInfo.keyLoadPromise;
return keyInfo.keyLoadPromise.then((keyLoadedData) => {
// Return the correct fragment with updated decryptdata key and loaded keyInfo
decryptdata.key = keyLoadedData.keyInfo.decryptdata.key;
return { frag, keyInfo };
});
}
// If we have a key session and status and it is not pending or usable, continue
// This will go back to the eme-controller for expired keys to get a new keyLoadPromise
Expand Down

0 comments on commit 747e15f

Please sign in to comment.