Class: shaka.polyfill.PatchedMediaKeysApple.MediaKeySession

Constructor

new MediaKeySession(nativeMediaKeys, sessionType)

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

Members

expiration :number

Type:
  • number
Source:

nativeMediaKeys_ :WebKitMediaKeys

Type:
  • WebKitMediaKeys
Source:

nativeMediaKeySession_ :WebKitMediaKeySession

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

sessionId :string

Type:
  • string
Source:

Methods

onWebkitKeyAdded_(eventnon-null)

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

onWebkitKeyError_(eventnon-null)

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

onWebkitKeyMessage_(eventnon-null)

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

updateKeyStatus_(status)

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