public interface

ExoMediaDrm.OnEventListener

 androidx.media3.exoplayer.drm.ExoMediaDrm.OnEventListener

Overview

Called when a DRM event occurs.

Summary

Methods
public voidonEvent(ExoMediaDrm mediaDrm, byte[] sessionId[], int event, int extra, byte[] data[])

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

Methods

public void onEvent(ExoMediaDrm mediaDrm, byte[] sessionId[], int event, int extra, byte[] data[])

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

Parameters:

mediaDrm: The ExoMediaDrm object on which the event occurred.
sessionId: The DRM session ID on which the event occurred.
event: Indicates the event type.
extra: A secondary error code.
data: Optional byte array of data that may be associated with the event.