-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prefer unprefixed EME for Safari #2999
Comments
It looks like the latest Safari does support the modern |
@avelad, I found a commented out section at the top of I don't have immediate access to a Mac or an iOS device. If you can, would you please try the following patch and let us know if FairPlay is working correctly for you on desktop Safari and iOS? If so, we could easily enable this in our next release. diff --git a/lib/polyfill/patchedmediakeys_apple.js b/lib/polyfill/patchedmediakeys_apple.js
index 98fd2e6d..885f1fc4 100644
--- a/lib/polyfill/patchedmediakeys_apple.js
+++ b/lib/polyfill/patchedmediakeys_apple.js
@@ -33,15 +33,12 @@ shaka.polyfill.PatchedMediaKeysApple = class {
return;
}
- // TODO: Prefer unprefixed EME once we know how to use it.
- // See: https://bugs.webkit.org/show_bug.cgi?id=197433
- /*
if (navigator.requestMediaKeySystemAccess &&
+ // eslint-disable-next-line no-restricted-syntax
MediaKeySystemAccess.prototype.getConfiguration) {
- // Prefixed EME is preferable.
+ // Unprefixed EME is preferable.
return;
}
- */
shaka.log.info('Using Apple-prefixed EME');
|
@joeyparrish I have tested and it works by making the following change:
I have tested in Safari 14 on macOS 10.15.7 and on iOS 14.2 It is necessary to always pass the initDataTypes field in requestMediaKeySystemAccess or it does not work, but this raises questions for me because in HLS-TS we should use SNIF, but I have tried with CENC and it works ... |
Note: in safari 12 is not working but it works in safari 14. I don’t have access to safari 13. |
@joeyparrish Resolved with 6d76a13 |
Good catch. Closing thanks to #2999. |
I would like that as this is very old, the support for the newest api can be investigated.
https://github.com/google/shaka-player/blob/master/lib/polyfill/patchedmediakeys_apple.js#L36-L44
The text was updated successfully, but these errors were encountered: