docs/doc/reference/com/google/android/exoplayer2/transformer/DefaultMuxer.Factory.html
Package com.google.android.exoplayer2.transformer
All Implemented Interfaces:Muxer.FactoryEnclosing class:DefaultMuxer
public static final classDefaultMuxer.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")
A Muxer.Factory for DefaultMuxer.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static long | DEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MS |
The default value returned by Muxer.getMaxDelayBetweenSamplesMs().
|
Constructors | Constructor | Description |
| --- | --- |
| Factory() |
Creates an instance with maxDelayBetweenSamplesMs set to DEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MS.
|
| Factory(long maxDelayBetweenSamplesMs) |
Creates an instance.
|
| Factory(long maxDelayBetweenSamplesMs, long videoDurationMs) |
Creates an instance.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| Muxer | 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 static final long DEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MS
The default value returned by Muxer.getMaxDelayBetweenSamplesMs().
See Also:Constant Field Values
-
public Factory()
Creates an instance with maxDelayBetweenSamplesMs set to DEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MS.
-
public Factory(long maxDelayBetweenSamplesMs)
Creates an instance.
Parameters:maxDelayBetweenSamplesMs - See Muxer.getMaxDelayBetweenSamplesMs().
-
public Factory(long maxDelayBetweenSamplesMs,
long videoDurationMs)
Creates an instance.
Parameters:maxDelayBetweenSamplesMs - See Muxer.getMaxDelayBetweenSamplesMs().videoDurationMs - The duration of the video track (in milliseconds) to enforce in the output, or C.TIME_UNSET to not enforce. Only applicable when a video track is added.
-
public[Muxer](Muxer.html "interface 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