docs/doc/reference/com/google/android/exoplayer2/transformer/InAppMuxer.Factory.html
Package com.google.android.exoplayer2.transformer
All Implemented Interfaces:Muxer.FactoryEnclosing class:InAppMuxer
public static final classInAppMuxer.Factoryextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[Muxer.Factory](Muxer.Factory.html "interface in com.google.android.exoplayer2.transformer")
Muxer.Factory for InAppMuxer.
Constructors | Constructor | Description |
| --- | --- |
| Factory() |
Creates an instance with maxDelayBetweenSamplesMs set to DefaultMuxer.Factory.DEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MS and metadataProvider set to null.
|
| Factory(long maxDelayBetweenSamplesMs, @Nullable InAppMuxer.MetadataProvider metadataProvider) |
Muxer.Factory for InAppMuxer.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| InAppMuxer | create(String path) |
Returns a new muxer writing to a file.
|
| ImmutableList<String> | getSupportedSampleMimeTypes(@com.google.android.exoplayer2.C.TrackType int trackType) |
Returns the supported sample MIME types for the given C.TrackType.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public Factory()
Creates an instance with maxDelayBetweenSamplesMs set to DefaultMuxer.Factory.DEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MS and metadataProvider set to null.
If the metadataProvider is not set then the metadata from the input file is set as it is in the output file.
-
public Factory(long maxDelayBetweenSamplesMs,
@Nullable[InAppMuxer.MetadataProvider](InAppMuxer.MetadataProvider.html "interface in com.google.android.exoplayer2.transformer")metadataProvider)
Muxer.Factory for InAppMuxer.
Parameters:maxDelayBetweenSamplesMs - See Muxer.getMaxDelayBetweenSamplesMs().metadataProvider - A InAppMuxer.MetadataProvider implementation. If the value is set to null then the metadata from the input file is set as it is in the output file.
-
public[InAppMuxer](InAppMuxer.html "class in com.google.android.exoplayer2.transformer")create([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")path)
throws[Muxer.MuxerException](Muxer.MuxerException.html "class in com.google.android.exoplayer2.transformer")
Description copied from interface: Muxer.Factory
Returns a new muxer writing to a file.
Specified by:create in interface Muxer.FactoryParameters:path - The path to the output file.Throws:Muxer.MuxerException - If an error occurs opening the output file for writing.
-
public[ImmutableList](https://guava.dev/releases/31.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true "class or interface in com.google.common.collect")<[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")> getSupportedSampleMimeTypes(@com.google.android.exoplayer2.C.TrackType int trackType)
Description copied from interface: Muxer.Factory
Returns the supported sample MIME types for the given C.TrackType.
Specified by:getSupportedSampleMimeTypes in interface Muxer.Factory