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 258a91f commit 1a6fcf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util/player_configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ shaka.util.PlayerConfiguration = class {
persistentSessionOnlinePlayback: false,
persistentSessionsMetadata: [],
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 1a6fcf7

Please sign in to comment.