onTracksChanged
abstract fun onTracksChanged(newTracks: Tracks, selectedAudioTrack: AudioTrack?, selectedTextTrack: TextTrack?): PlayerSynchronizer.Selection
Called when the androidx.media3.common.Tracks of the current player are ready to set up the track selection from the previous player.
Parameters
newTracks
the androidx.media3.common.Tracks of the player that replace the previous one.
selectedAudioTrack
the selected ch.srgssr.pillarbox.player.tracks.AudioTrack of previous player, null if no audio track is selected.
selectedTextTrack
the selected ch.srgssr.pillarbox.player.tracks.TextTrack of the previous player,null if no text track is selected.