Class DefaultMuxer.Factory
- java.lang.Object
-
- com.google.android.exoplayer2.transformer.DefaultMuxer.Factory
-
- All Implemented Interfaces:
Muxer.Factory
- Enclosing class:
- DefaultMuxer
public static final class DefaultMuxer.Factory extends Object implements Muxer.Factory
AMuxer.FactoryforDefaultMuxer.
-
-
Field Summary
Fields Modifier and Type Field Description static longDEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MSThe default value returned byMuxer.getMaxDelayBetweenSamplesMs().
-
Constructor Summary
Constructors Constructor Description Factory()Creates an instance withmaxDelayBetweenSamplesMsset toDEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MS.Factory(long maxDelayBetweenSamplesMs)Creates an instance.Factory(long maxDelayBetweenSamplesMs, long videoDurationMs)Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Muxercreate(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 givenC.TrackType.
-
-
-
Field Detail
-
DEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MS
public static final long DEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MS
The default value returned byMuxer.getMaxDelayBetweenSamplesMs().- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Factory
public Factory()
Creates an instance withmaxDelayBetweenSamplesMsset toDEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MS.
-
Factory
public Factory(long maxDelayBetweenSamplesMs)
Creates an instance.- Parameters:
maxDelayBetweenSamplesMs- SeeMuxer.getMaxDelayBetweenSamplesMs().
-
Factory
public Factory(long maxDelayBetweenSamplesMs, long videoDurationMs)Creates an instance.- Parameters:
maxDelayBetweenSamplesMs- SeeMuxer.getMaxDelayBetweenSamplesMs().videoDurationMs- The duration of the video track (in milliseconds) to enforce in the output, orC.TIME_UNSETto not enforce. Only applicable when a video track is added.
-
-
Method Detail
-
create
public Muxer create(String path) throws Muxer.MuxerException
Description copied from interface:Muxer.FactoryReturns a new muxer writing to a file.- Specified by:
createin interfaceMuxer.Factory- Parameters:
path- The path to the output file.- Throws:
Muxer.MuxerException- If an error occurs opening the output file for writing.
-
getSupportedSampleMimeTypes
public ImmutableList<String> getSupportedSampleMimeTypes(@com.google.android.exoplayer2.C.TrackType int trackType)
Description copied from interface:Muxer.FactoryReturns the supported sample MIME types for the givenC.TrackType.- Specified by:
getSupportedSampleMimeTypesin interfaceMuxer.Factory
-
-