PillarboxCastPlayerBuilder

A builder class for creating instances of PillarboxCastPlayer.

This builder provides a fluent API for configuring various aspects of the player, such as seek increments, item converters, ...

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun maxSeekToPreviousPosition(maxSeekToPreviousPosition: Duration)
Link copied to clipboard
fun mediaItemConverter(mediaItemConverter: MediaItemConverter)

Media item converter

Link copied to clipboard
fun onCastSessionAvailable(onCastSessionAvailable: PillarboxCastPlayer.() -> Unit)

On cast session available

Link copied to clipboard
fun onCastSessionUnavailable(onCastSessionUnavailable: PillarboxCastPlayer.() -> Unit)

On cast session unavailable

Link copied to clipboard
fun seekBackIncrement(seekBackIncrement: Duration)
Link copied to clipboard
fun seekForwardIncrement(seekForwardIncrement: Duration)
Link copied to clipboard
fun trackSelector(trackSelector: CastTrackSelector)

Track selector