public final class

InAppMuxer.Factory.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.media3.transformer.InAppMuxer.Factory.Builder

Overview

A builder for InAppMuxer.Factory instances.

Summary

Constructors
publicBuilder()

Creates a InAppMuxer.Factory.Builder instance with default values.

Methods
public InAppMuxer.Factorybuild()

Builds a InAppMuxer.Factory instance.

public InAppMuxer.Factory.BuildersetFragmentDurationMs(long fragmentDurationMs)

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

public InAppMuxer.Factory.BuildersetMetadataProvider(InAppMuxer.MetadataProvider metadataProvider)

Sets an implementation of InAppMuxer.MetadataProvider.

public InAppMuxer.Factory.BuildersetOutputFragmentedMp4(boolean outputFragmentedMp4)

Sets whether to output a fragmented MP4.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Creates a InAppMuxer.Factory.Builder instance with default values.

Methods

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

Sets an implementation of InAppMuxer.MetadataProvider.

The default value is null.

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

public InAppMuxer.Factory.Builder setOutputFragmentedMp4(boolean outputFragmentedMp4)

Sets whether to output a fragmented MP4.

public InAppMuxer.Factory.Builder setFragmentDurationMs(long fragmentDurationMs)

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

public InAppMuxer.Factory build()

Builds a InAppMuxer.Factory instance.