Constructor
new MediaKeys(keySystem)
An implementation of MediaKeys.
Parameters:
Name | Type | Description |
---|---|---|
keySystem |
string |
- Implements:
- MediaKeys
- Source:
Members
-
(private, non-null) eventManager_ :shaka.util.EventManager
-
Type:
-
(private) keySystem_ :string
-
Type:
- string
-
(private) media_ :HTMLMediaElement
-
Type:
- HTMLMediaElement
-
(private, non-null) newSessions_ :Array.<!shaka.polyfill.PatchedMediaKeys.v01b.MediaKeySession>
-
Type:
-
(private, non-null) sessionMap_ :Object.<string, !shaka.polyfill.PatchedMediaKeys.v01b.MediaKeySession>
-
Type:
- Object.<string, !shaka.polyfill.PatchedMediaKeys.v01b.MediaKeySession>
Methods
-
createSession()
-
(private) findSession_(sessionId) → {shaka.polyfill.PatchedMediaKeys.v01b.MediaKeySession}
-
Parameters:
Name Type Description sessionId
string Returns:
-
(private) onWebkitKeyAdded_(eventnon-null)
-
Parameters:
Name Type Description event
MediaKeyEvent -
(private) onWebkitKeyError_(eventnon-null)
-
Parameters:
Name Type Description event
MediaKeyEvent -
(private) onWebkitKeyMessage_(eventnon-null)
-
Parameters:
Name Type Description event
MediaKeyEvent -
(private) onWebkitNeedKey_(eventnon-null)
-
Parameters:
Name Type Description event
MediaKeyEvent -
(protected) setMedia(media)
-
Parameters:
Name Type Description media
HTMLMediaElement -
setServerCertificate()