Class: shaka.polyfill.PatchedMediaKeysWebkit.MediaKeys

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:
Source:

(private) keySystem_ :string

Type:
  • string
Source:

(private) media_ :HTMLMediaElement

Type:
  • HTMLMediaElement
Source:

(private, non-null) newSessions_ :Array.<!shaka.polyfill.PatchedMediaKeysWebkit.MediaKeySession>

Type:
Source:

(private, non-null) sessionMap_ :Object.<string, !shaka.polyfill.PatchedMediaKeysWebkit.MediaKeySession>

Type:
Source:

Methods

createSession()

Source:

(private) findSession_(sessionId) → {shaka.polyfill.PatchedMediaKeysWebkit.MediaKeySession}

Parameters:
Name Type Description
sessionId string
Source:
Returns:
Type
shaka.polyfill.PatchedMediaKeysWebkit.MediaKeySession

(private) onWebkitKeyAdded_(eventnon-null)

Parameters:
Name Type Description
event MediaKeyEvent
Source:

(private) onWebkitKeyError_(eventnon-null)

Parameters:
Name Type Description
event MediaKeyEvent
Source:

(private) onWebkitKeyMessage_(eventnon-null)

Parameters:
Name Type Description
event MediaKeyEvent
Source:

(private) onWebkitNeedKey_(eventnon-null)

Parameters:
Name Type Description
event MediaKeyEvent
Source:

(protected) setMedia(media)

Parameters:
Name Type Description
media HTMLMediaElement
Source:

setServerCertificate()

Source: