Chromecast SDK (Android) - is there a way to check whether the media playing on the cast device has finished playing?
Is there an onFinished listener of some sort? Or do we have to compare the current stream position against the duration of the track? Silva2351 It's not pretty but you can make this call: if (mRemoteMediaPlayer.getMediaStatus().getPlayerState() == MediaStatus.PLAYER_STATE_IDLE && mRemoteMediaPlayer.getMediaStatus().getIdleReason() == MediaStatus.IDLE_REASON_FINISHED) { ... } Prem, There is currently no callback to register for such event. One alternative (and-not-so-pretty) approach is the following: on the receiver, listen for "ended" event of the media element and send an event back to the