PlayerSynchronizer

Interface to configure the state of two players.

Inheritors

Types

Link copied to clipboard
class Selection(val audioTrack: AudioTrack? = null, val textTrack: TextTrack? = null)

A selection of tracks

Functions

Link copied to clipboard
abstract fun onPlayerChanged(oldPlayer: PillarboxPlayer, newPlayer: PillarboxPlayer)
Link copied to clipboard
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.