Class: shaka.polyfill.PatchedMediaKeysApple.MediaKeySession

Constructor

new MediaKeySession(nativeMediaKeys, sessionType)

An implementation of MediaKeySession.
Parameters:
Name Type Description
nativeMediaKeys WebKitMediaKeys
sessionType string
Implements:
  • MediaKeySession
Extends:
Source:

Extends

Members

dispatchTarget :EventTarget

The target of all dispatched events. Defaults to |this|.
Type:
  • EventTarget
Inherited From:
Source:

expiration :number

Type:
  • number
Source:

(private) nativeMediaKeys_ :WebKitMediaKeys

Type:
  • WebKitMediaKeys
Source:

(private) nativeMediaKeySession_ :WebKitMediaKeySession

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

sessionId :string

Type:
  • string
Source:

Methods

(export) addEventListener(type, listener, optionsopt)

Add an event listener to this object.
Parameters:
Name Type Attributes Description
type string The event type to listen for.
listener shaka.util.FakeEventTarget.ListenerType The callback or listener object to invoke.
options AddEventListenerOptions | boolean <optional>
Ignored.
Inherited From:
Source:

(export) dispatchEvent(eventnon-null) → {boolean}

Dispatch an event from this object.
Parameters:
Name Type Description
event Event The event to be dispatched from this object.
Inherited From:
Source:
Returns:
True if the default action was prevented.
Type
boolean

(private) onWebkitKeyAdded_(eventnon-null)

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

(private) onWebkitKeyError_(eventnon-null)

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

(private) onWebkitKeyMessage_(eventnon-null)

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

(export) removeEventListener(type, listener, optionsopt)

Remove an event listener from this object.
Parameters:
Name Type Attributes Description
type string The event type for which you wish to remove a listener.
listener shaka.util.FakeEventTarget.ListenerType The callback or listener object to remove.
options EventListenerOptions | boolean <optional>
Ignored.
Inherited From:
Source:

(private) updateKeyStatus_(status)

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