Constructor
new MediaKeySession(nativeMediaKeys, sessionType)
Parameters:
Name | Type | Description |
---|---|---|
nativeMediaKeys |
WebKitMediaKeys | |
sessionType |
string |
- Implements:
- MediaKeySession
- Source:
Members
closed :shaka.util.PublicPromise
Type:
eventManager_ :shaka.util.EventManager
Type:
generateRequestPromise_ :shaka.util.PublicPromise
Type:
keyStatuses :shaka.polyfill.PatchedMediaKeysApple.MediaKeyStatusMap
Type:
nativeMediaKeys_ :WebKitMediaKeys
Type:
- WebKitMediaKeys
nativeMediaKeySession_ :WebKitMediaKeySession
The native MediaKeySession, which will be created in generateRequest.
Type:
- WebKitMediaKeySession
updatePromise_ :shaka.util.PublicPromise
Type:
Methods
close()
generateRequest()
load()
onWebkitKeyAdded_(eventnon-null)
Handler for the native keyadded event on WebKitMediaKeySession.
Parameters:
Name | Type | Description |
---|---|---|
event |
MediaKeyEvent |
onWebkitKeyError_(eventnon-null)
Handler for the native keyerror event on WebKitMediaKeySession.
Parameters:
Name | Type | Description |
---|---|---|
event |
MediaKeyEvent |
onWebkitKeyMessage_(eventnon-null)
Handler for the native keymessage event on WebKitMediaKeySession.
Parameters:
Name | Type | Description |
---|---|---|
event |
MediaKeyEvent |
remove()
update()
updateKeyStatus_(status)
Updates key status and dispatch a 'keystatuseschange' event.
Parameters:
Name | Type | Description |
---|---|---|
status |
string |