ExoMediaDrm.OnEventListener


interface ExoMediaDrm.OnEventListener


Called when a DRM event occurs.

Summary

Public functions

Unit
onEvent(
    mediaDrm: ExoMediaDrm!,
    sessionId: ByteArray?,
    event: Int,
    extra: Int,
    data: ByteArray?
)

Called when an event occurs that requires the app to be notified

Public functions

onEvent

fun onEvent(
    mediaDrm: ExoMediaDrm!,
    sessionId: ByteArray?,
    event: Int,
    extra: Int,
    data: ByteArray?
): Unit

Called when an event occurs that requires the app to be notified

Parameters
mediaDrm: ExoMediaDrm!

The ExoMediaDrm object on which the event occurred.

sessionId: ByteArray?

The DRM session ID on which the event occurred.

event: Int

Indicates the event type.

extra: Int

A secondary error code.

data: ByteArray?

Optional byte array of data that may be associated with the event.