Skip to content

Commit

Permalink
fix: com.apple.fps should work with the default initDataTransform whe…
Browse files Browse the repository at this point in the history
…n using legacy Apple Media Keys (#5603)
  • Loading branch information
avelad authored and joeyparrish committed Sep 5, 2023
1 parent b1f30ad commit 8017636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util/player_configuration.js
Expand Up @@ -69,8 +69,8 @@ shaka.util.PlayerConfiguration = class {
advanced: {}, // key is arbitrary key system ID, value is a record type
delayLicenseRequestUntilPlayed: false,
initDataTransform: (initData, initDataType, drmInfo) => {
const keySystem = drmInfo.keySystem;
if (keySystem == 'com.apple.fps.1_0' && initDataType == 'skd') {
if (shaka.util.Platform.isMediaKeysPolyfilled() &&
initDataType == 'skd') {
const cert = drmInfo.serverCertificate;
const contentId =
shaka.util.FairPlayUtils.defaultGetContentId(initData);
Expand Down

0 comments on commit 8017636

Please sign in to comment.