CastPlayerSynchronizer

constructor(castContext: CastContext, coroutineScope: CoroutineScope, castPlayer: PillarboxCastPlayer, localPlayer: PillarboxExoPlayer, playerSynchronizer: CastPlayerSynchronizer.PlayerSynchronizer = DefaultPlayerSynchronizer())

Parameters

castContext

The CastContext to use to check if a cast session is available.

coroutineScope

The CoroutineScope to use to launch coroutines.

castPlayer

The PillarboxCastPlayer to use when a cast session is connected.

localPlayer

The PillarboxExoPlayer to use when playing locally.

playerSynchronizer

The PlayerSynchronizer to customize the synchronization of the two players.