Class: shaka.polyfill.PatchedMediaKeysMs.MediaKeySession

Constructor

new MediaKeySession(nativeMediaKeys, sessionType)

Parameters:
Name Type Description
nativeMediaKeys MSMediaKeys
sessionType string
Implements:
  • MediaKeySession
Source:

Members

expiration :number

Type:
  • number
Source:

nativeMediaKeys_ :MSMediaKeys

Type:
  • MSMediaKeys
Source:

nativeMediaKeySession_ :MSMediaKeySession

The native MediaKeySession, which will be created in generateRequest.
Type:
  • MSMediaKeySession
Source:

sessionId :string

Type:
  • string
Source:

Methods

generateRequest()

Source:

onMsKeyAdded_(eventnon-null)

Handler for the native keyadded event on MSMediaKeySession.
Parameters:
Name Type Description
event MediaKeyEvent
Source:

onMsKeyError_(eventnon-null)

Handler for the native keyerror event on MSMediaKeySession.
Parameters:
Name Type Description
event MediaKeyEvent
Source:

onMsKeyMessage_(eventnon-null)

Handler for the native keymessage event on MSMediaKeySession.
Parameters:
Name Type Description
event MediaKeyEvent
Source:

updateKeyStatus_(status)

Updates key status and dispatch a 'keystatuseschange' event.
Parameters:
Name Type Description
status string
Source: