ExoMediaDrm.OnEventListener
Artifact: androidx.media3:media3-exoplayer
public interface ExoMediaDrm.OnEventListener
Called when a DRM event occurs.
| See also | |
|---|---|
MediaDrm.OnEventListener |
Summary
Public methods |
|
|---|---|
abstract void |
onEvent(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 |
@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. |