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