InAppMuxer.Factory.Builder


public final class InAppMuxer.Factory.Builder


A builder for Factory instances.

Summary

Public constructors

Creates a Builder instance with default values.

Public methods

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
@CanIgnoreReturnValue
setOutputFragmentedMp4(boolean outputFragmentedMp4)

Sets whether to output a fragmented MP4.

Public constructors

Builder

public Builder()

Creates a Builder instance with default values.

Public methods

build

public InAppMuxer.Factory build()

Builds a Factory instance.

setFragmentDurationMs

@CanIgnoreReturnValue
public InAppMuxer.Factory.Builder setFragmentDurationMs(long fragmentDurationMs)

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

setMetadataProvider

@CanIgnoreReturnValue
public InAppMuxer.Factory.Builder setMetadataProvider(InAppMuxer.MetadataProvider metadataProvider)

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
public InAppMuxer.Factory.Builder setOutputFragmentedMp4(boolean outputFragmentedMp4)

Sets whether to output a fragmented MP4.