InAppMuxer.Factory.Builder


class InAppMuxer.Factory.Builder


A builder for Factory instances.

Summary

Public constructors

Creates a Builder instance with default values.

Public functions

InAppMuxer.Factory!

Builds a Factory instance.

InAppMuxer.Factory.Builder!

Sets the fragment duration (in milliseconds) if the output file is fragmented.

InAppMuxer.Factory.Builder!

Sets an implementation of MetadataProvider.

InAppMuxer.Factory.Builder!

Sets whether to output a fragmented MP4.

Public constructors

Builder

Builder()

Creates a Builder instance with default values.

Public functions

build

fun build(): InAppMuxer.Factory!

Builds a Factory instance.

setFragmentDurationMs

@CanIgnoreReturnValue
fun setFragmentDurationMs(fragmentDurationMs: Long): InAppMuxer.Factory.Builder!

Sets the fragment duration (in milliseconds) if the output file is fragmented.

setMetadataProvider

@CanIgnoreReturnValue
fun setMetadataProvider(metadataProvider: InAppMuxer.MetadataProvider!): InAppMuxer.Factory.Builder!

Sets an implementation of MetadataProvider.

The default value is null.

If the value is not set then the metadata from the input file is set as it is in the output file.

setOutputFragmentedMp4

@CanIgnoreReturnValue
fun setOutputFragmentedMp4(outputFragmentedMp4: Boolean): InAppMuxer.Factory.Builder!

Sets whether to output a fragmented MP4.