PillarboxBuilder

abstract class PillarboxBuilder

A builder class for creating instances of PillarboxExoPlayer.

This builder provides a fluent API for configuring various aspects of the player, such as asset loaders, coroutine context, seek increments, ...

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun addAssetLoader(assetLoader: AssetLoader)

Registers a custom AssetLoader with the PillarboxExoPlayer.

Link copied to clipboard

Sets the internal Clock used by the player.

Link copied to clipboard
fun coroutineContext(coroutineContext: CoroutineContext)

Sets the CoroutineContext used by the player.

Link copied to clipboard

Disables the monitoring for this player.

Link copied to clipboard
fun loadControl(loadControl: LoadControl)

Sets the LoadControl used by the player.

Link copied to clipboard
fun maxSeekToPreviousPosition(maxSeekToPreviousPosition: Duration)

Sets the maximum duration the player can seek backward when using Player.seekToPrevious.

Link copied to clipboard
fun monitoring(type: Logcat)

Logs all monitoring events to Logcat.

Configures monitoring for this player.

fun monitoring(endpointUrl: String, okHttpClient: OkHttpClient? = null, coroutineScope: CoroutineScope? = null)

Configures the monitoring to send all events to a remote server.

Link copied to clipboard
fun playbackLooper(playbackLooper: Looper)

Sets the Looper used by the player.

Link copied to clipboard

Sets the ExoPlayer.PreloadConfiguration used by the player.

Link copied to clipboard
fun seekBackwardIncrement(seekBackwardIncrement: Duration)

Sets the duration by which the player seeks backward when performing a "seek backward" operation.

Link copied to clipboard
fun seekForwardIncrement(seekForwardIncrement: Duration)

Sets the duration by which the player seeks forward when performing a "seek forward" action.

Link copied to clipboard
operator fun AssetLoader.unaryPlus()

Registers a custom AssetLoader with the PillarboxExoPlayer.