onPlayingStateChanged

abstract suspend fun onPlayingStateChanged(details: TrackDetails?, isPlaying: Boolean)

Called when the player changes its playing state or when the position changes.

Parameters

details

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