Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Safari 10.1 and requestMediaKeySystemAccess

Hi all,


OS : macOS 10.12.4 and 10.12.5

browser: Safari 10.1.


I observed since Safari 10,1 that the function "requestMediaKeySystemAccess" from EME is not more available.


If I type "navigator.requestMediaKeySystemAccess() in the console, I got this error :


TypeError: requestMediaKeySystemAccess is not a function.


Is it normal ?


Thank you

Sebastien

iMac, Mac OS X (10.1.x)

Posted on Mar 29, 2017 12:16 PM

Reply
Question marked as Best reply

Posted on Apr 19, 2017 12:40 PM

api has changed to `videoElement.webkitSetMediaKeys`,
you can reference solution from videojs:


https://github.com/videojs/videojs-contrib-eme/blob/master/src/fairplay.js

gl
jesse

2 replies

Safari 10.1 and requestMediaKeySystemAccess

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.