onTracksChanged

abstract fun onTracksChanged(newTracks: Tracks, selectedAudioTrack: AudioTrack?, selectedTextTrack: TextTrack?): CastPlayerSynchronizer.Selection

Called when the Tracks of the current player are ready to set up the track selection from the previous player.

Parameters

newTracks

the Tracks of the player that replace the previous one.

selectedAudioTrack

the selected AudioTrack of previous player, null if no audio track is selected.

selectedTextTrack

the selected TextTrack of the previous player, null if no text track is selected.