onEvent

public abstract void onEvent(String event, Bundle data)

Called when a player event occurs.

Parameters

event

The event type (e.g., PLAYBACK_STARTED, "error").

data

Additional data associated with the event, or an empty Bundle if none.