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.FactoryforInAppMuxer.
-
-
Constructor Summary
Constructors Constructor Description Factory()Creates an instance withmaxDelayBetweenSamplesMsset toDefaultMuxer.Factory.DEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MSandmetadataProviderset tonull.Factory(long maxDelayBetweenSamplesMs, @Nullable InAppMuxer.MetadataProvider metadataProvider)Muxer.FactoryforInAppMuxer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InAppMuxercreate(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 withmaxDelayBetweenSamplesMsset toDefaultMuxer.Factory.DEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MSandmetadataProviderset tonull.If the
metadataProvideris 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.FactoryforInAppMuxer.- Parameters:
maxDelayBetweenSamplesMs- SeeMuxer.getMaxDelayBetweenSamplesMs().metadataProvider- AInAppMuxer.MetadataProviderimplementation. If the value is set tonullthen 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.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
-
-