onPlayItemFinishedPlayback

abstract fun onPlayItemFinishedPlayback(play: Play, reason: Int, timePlayed: Float, error: Exception?)

Triggered after a play item has finished playing or is ending soon. The item may still be playing if crossfading is enabled and the play reason is REACHED_END

Parameters

play

The item finishing playback

reason

Reason for completion

error

Contains exception if the play stopped because of an error