Skip to content

Commit

Permalink
fix: Install by default shaka.polyfill.PatchedMediaKeysApple when the…
Browse files Browse the repository at this point in the history
…re is no unprefixed EME support (#6053)
  • Loading branch information
avelad committed Jan 8, 2024
1 parent b45877d commit 5b5b2ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/polyfill/patchedmediakeys_apple.js
Expand Up @@ -791,3 +791,9 @@ shaka.polyfill.PatchedMediaKeysApple.MediaKeyStatusMap = class {
goog.asserts.assert(false, 'Not used! Provided only for the compiler.');
}
};

if (!navigator.requestMediaKeySystemAccess ||
// eslint-disable-next-line no-restricted-syntax
!MediaKeySystemAccess.prototype.getConfiguration) {
shaka.polyfill.register(shaka.polyfill.PatchedMediaKeysApple.install);
}

0 comments on commit 5b5b2ce

Please sign in to comment.