For more information, see https://www.w3.org/TR/encrypted-media/#mediakeys-interface
Methods
createSession()
createSession(sessionType?): MediaKeySession
Creates a new MediaKeySession object.
For more information, see
https://www.w3.org/TR/encrypted-media/#dom-mediakeys-createsession.
Parameters
sessionType?
MediaKeySessionType
The type of session to create.
The session type affects the behavior of the returned object.
Returns
MediaKeySession
getStatusForPolicy()
getStatusForPolicy(policy?): Promise<MediaKeyStatus>
Returns a MediaKeyStatus for a given MediaKeysPolicy.
For more information, see
https://www.w3.org/TR/encrypted-media/#dom-mediakeys-getstatusforpolicy
Parameters
policy?
MediaKeysPolicy
Returns
Promise<MediaKeyStatus>

