onTrackChanged

abstract suspend fun onTrackChanged(details: TrackDetails?)

Called when the player changes its current track.

Note: This method will be called again if the track was played again from the beginning.

Parameters

details

the details of the track that is playing, or null if player is empty.