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) media_ :HTMLMediaElement
Type:
(private, non-null) newSessions_ :Array.<!shaka.polyfill.PatchedMediaKeysWebkit.MediaKeySession>
Type:
(private, non-null) sessionMap_ :Object.<string, !shaka.polyfill.PatchedMediaKeysWebkit.MediaKeySession>
Type:
- Object.<string, !shaka.polyfill.PatchedMediaKeysWebkit.MediaKeySession>
Methods
createSession()
(private) findSession_(sessionId) → {shaka.polyfill.PatchedMediaKeysWebkit.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 |