ProtectionEvents

new ProtectionEvents()

Public facing external events to be used when including protection package.
All public events will be aggregated into the MediaPlayerEvents Class and can be accessed
via MediaPlayer.events. public_ is the prefix that we use to move event names to MediaPlayerEvents.

Events

KEY_ADDED

Event ID for events delivered when a new key has been added

Deprecated
  • The latest versions of the EME specification no longer use this event. {@MediaPlayer.models.protectionModel.eventList.KEY_STATUSES_CHANGED} is preferred.

KEY_ERROR

Event ID for events delivered when an error is encountered by the CDM
while processing a license server response message

KEY_MESSAGE

Event ID for events delivered when the protection set receives
a key message from the CDM

KEY_SESSION_CLOSED

Event ID for events delivered when a key session close
process has completed

KEY_SESSION_CREATED

Event ID for events delivered when a new key sessions creation
process has completed

KEY_SESSION_REMOVED

Event ID for events delivered when a key session removal
process has completed

KEY_STATUSES_CHANGED

Event ID for events delivered when the status of one or more
decryption keys has changed

KEY_SYSTEM_ACCESS_COMPLETE

Event ID for events delivered when a key system access procedure
has completed

KEY_SYSTEM_SELECTED

Event ID for events delivered when a key system selection procedure
completes

LICENSE_REQUEST_COMPLETE

Event ID for events delivered when a license request procedure
has completed

LICENSE_REQUEST_SENDING

Sending a license rquest

PROTECTION_CREATED

Event ID for events delivered when the Protection system is detected and created.

PROTECTION_DESTROYED

Event ID for events delivered when the Protection system is destroyed.