PlayerConfigBuilder

class PlayerConfigBuilder(from: PlayerConfig = PlayerConfig())

The fields of a PlayerConfig, set in a PlayerConfig { } block. Each one is the field of that name.

Java, which has no such block, makes one directly and calls build (#394). Every builder here works the same way, starting from the defaults or from the config it is given:

PlayerConfigBuilder builder = new PlayerConfigBuilder();
builder.setVideoEnabled(false);
PlayerConfig config = builder.build();

Constructors

Link copied to clipboard
constructor(from: PlayerConfig = PlayerConfig())

Properties

Link copied to clipboard

See PlayerConfig.audio, and audio for the block form.

Link copied to clipboard
Link copied to clipboard

See PlayerConfig.buffer, and buffer for the block form.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

See PlayerConfig.network, and network for the block form.

Link copied to clipboard

See PlayerConfig.queue, and queue for the block form.

Link copied to clipboard

See PlayerConfig.subtitles, and subtitles for the block form.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun audio(build: AudioConfigBuilder.() -> Unit)

Changes audio field by field.

Link copied to clipboard
fun buffer(build: BufferPolicyBuilder.() -> Unit)

Changes buffer field by field.

Link copied to clipboard

The PlayerConfig these fields describe, checked as its constructor checks it.

Link copied to clipboard

Changes network field by field.

Link copied to clipboard
fun queue(build: QueueConfigBuilder.() -> Unit)

Changes queue field by field.

Link copied to clipboard

Changes subtitles field by field.