Class InAppMuxer.Factory
- java.lang.Object
-
- com.google.android.exoplayer2.transformer.InAppMuxer.Factory
-
- All Implemented Interfaces:
Muxer.Factory
- Enclosing class:
- InAppMuxer
public static final class InAppMuxer.Factory extends Object implements Muxer.Factory
Muxer.Factory
forInAppMuxer
.
-
-
Constructor Summary
Constructors Constructor Description Factory()
Creates an instance withmaxDelayBetweenSamplesMs
set toDefaultMuxer.Factory.DEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MS
andmetadataProvider
set tonull
.Factory(long maxDelayBetweenSamplesMs, @Nullable InAppMuxer.MetadataProvider metadataProvider)
Muxer.Factory
forInAppMuxer
.
-
Method Summary
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 givenC.TrackType
.
-
-
-
Constructor Detail
-
Factory
public Factory()
Creates an instance withmaxDelayBetweenSamplesMs
set toDefaultMuxer.Factory.DEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MS
andmetadataProvider
set tonull
.If the
metadataProvider
is not set then the metadata from the input file is set as it is in the output file.
-
Factory
public Factory(long maxDelayBetweenSamplesMs, @Nullable InAppMuxer.MetadataProvider metadataProvider)
Muxer.Factory
forInAppMuxer
.- Parameters:
maxDelayBetweenSamplesMs
- SeeMuxer.getMaxDelayBetweenSamplesMs()
.metadataProvider
- AInAppMuxer.MetadataProvider
implementation. If the value is set tonull
then the metadata from the input file is set as it is in the output file.
-
-
Method Detail
-
create
public InAppMuxer 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.
-
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
-
-