ExoMediaDrm.OnEventListener


public interface ExoMediaDrm.OnEventListener


Called when a DRM event occurs.

Summary

Public methods

abstract void
onEvent(
    ExoMediaDrm mediaDrm,
    @Nullable byte[] sessionId,
    int event,
    int extra,
    @Nullable byte[] data
)

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

Public methods

onEvent

abstract void onEvent(
    ExoMediaDrm mediaDrm,
    @Nullable byte[] sessionId,
    int event,
    int extra,
    @Nullable byte[] data
)

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

Parameters
ExoMediaDrm mediaDrm

The ExoMediaDrm object on which the event occurred.

@Nullable byte[] sessionId

The DRM session ID on which the event occurred.

int event

Indicates the event type.

int extra

A secondary error code.

@Nullable byte[] data

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