Package-level declarations

Types

Link copied to clipboard

Defines a factory for creating instances of PillarboxCastPlayerBuilder.

Link copied to clipboard
class CastPlayerSynchronizer(castContext: CastContext, coroutineScope: CoroutineScope, castPlayer: PillarboxCastPlayer, localPlayer: PillarboxExoPlayer, playerSynchronizer: CastPlayerSynchronizer.PlayerSynchronizer = DefaultPlayerSynchronizer())

Synchronizes a PillarboxCastPlayer with a PillarboxExoPlayer. It switches the two players when the cast session becomes available

Link copied to clipboard

Cast track selector

Link copied to clipboard

Default configuration for creating a PillarboxCastPlayer.

Link copied to clipboard
Link copied to clipboard

A default implementation of FormatConverter.

Link copied to clipboard
class DefaultTracksConverter(formatConverter: FormatConverter = DefaultFormatConverter()) : TracksConverter

A default implementation of TracksConverter.

Link copied to clipboard
interface FormatConverter

Interface responsible for converting between ExoPlayer's Format and Cast's MediaTrack representations.

Link copied to clipboard

A PillarboxPlayer implementation that works with Cast devices.

Link copied to clipboard

A builder class for creating instances of PillarboxCastPlayer.

Link copied to clipboard

Utils to convert GoogleCast types to Media3 types.

Link copied to clipboard
interface TracksConverter

Interface responsible for converting between ExoPlayer's Tracks and Cast's MediaTrack representations. This is necessary because the Cast framework uses its own data structures for track information.

Functions

Link copied to clipboard

Inherited functions

Link copied to clipboard
fun Context.getCastContext(): CastContext

Retrieves the shared instance of CastContext.

Link copied to clipboard

Observe the availability of a Cast session as a Flow.

Link copied to clipboard
fun CastContext.isConnected(): Boolean