mainCallback

@MainThread
fun mainCallback(event: PlayerEvent)(source)

This receives the events from the player, if you want to append functionality you do it here, do note that this only receives events for UI changes, and returning early WON'T stop it from changing in e.g. the player time or pause status.