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.Factory
forDefaultMuxer
.
-
-
Field Summary
Fields Modifier and Type Field Description static long
DEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MS
The default value returned byMuxer.getMaxDelayBetweenSamplesMs()
.
-
Constructor Summary
Constructors Constructor Description Factory()
Creates an instance withmaxDelayBetweenSamplesMs
set toDEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MS
.Factory(long maxDelayBetweenSamplesMs)
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Muxer
create(ParcelFileDescriptor parcelFileDescriptor)
Returns a new muxer writing to a file descriptor.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 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 withmaxDelayBetweenSamplesMs
set toDEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MS
.
-
Factory
public Factory(long maxDelayBetweenSamplesMs)
Creates an instance.- Parameters:
maxDelayBetweenSamplesMs
- SeeMuxer.getMaxDelayBetweenSamplesMs()
.
-
-
Method Detail
-
create
public Muxer create(String path) throws Muxer.MuxerException
Description copied from interface:Muxer.Factory
Returns a new muxer writing to a file.- Specified by:
create
in interfaceMuxer.Factory
- Parameters:
path
- The path to the output file.- Throws:
Muxer.MuxerException
- If an error occurs opening the output file for writing.
-
create
public Muxer create(ParcelFileDescriptor parcelFileDescriptor) throws Muxer.MuxerException
Description copied from interface:Muxer.Factory
Returns a new muxer writing to a file descriptor.- Specified by:
create
in interfaceMuxer.Factory
- Parameters:
parcelFileDescriptor
- A readable and writableParcelFileDescriptor
of the output. The file referenced by this ParcelFileDescriptor should not be used before the muxer is released. It is the responsibility of the caller to close the ParcelFileDescriptor. This can be done after this method returns.- Throws:
Muxer.MuxerException
- If an error occurs opening the output file descriptor for writing.
-
getSupportedSampleMimeTypes
public ImmutableList<String> getSupportedSampleMimeTypes(@com.google.android.exoplayer2.C.TrackType int trackType)
Description copied from interface:Muxer.Factory
Returns the supported sample MIME types for the givenC.TrackType
.- Specified by:
getSupportedSampleMimeTypes
in interfaceMuxer.Factory
-
-