Back to Exoplayer

InAppMuxer.Factory (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/transformer/InAppMuxer.Factory.html

latest5.3 KB
Original Source

Package com.google.android.exoplayer2.transformer

Class InAppMuxer.Factory

  • java.lang.Object

    • com.google.android.exoplayer2.transformer.InAppMuxer.Factory
  • All Implemented Interfaces:Muxer.FactoryEnclosing class:InAppMuxer


public static final classInAppMuxer.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")

Muxer.Factory for InAppMuxer.

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | Factory() | Creates an instance with maxDelayBetweenSamplesMs set to DefaultMuxer.Factory.DEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MS and metadataProvider set to null. | | Factory​(long maxDelayBetweenSamplesMs, @Nullable InAppMuxer.MetadataProvider metadataProvider) | Muxer.Factory for InAppMuxer. |

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 given C.TrackType. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

Factory

public Factory()

Creates an instance with maxDelayBetweenSamplesMs set to DefaultMuxer.Factory.DEFAULT_MAX_DELAY_BETWEEN_SAMPLES_MS and metadataProvider set to null.

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](InAppMuxer.MetadataProvider.html "interface in com.google.android.exoplayer2.transformer")metadataProvider)

Muxer.Factory for InAppMuxer. Parameters:maxDelayBetweenSamplesMs - See Muxer.getMaxDelayBetweenSamplesMs().metadataProvider - A InAppMuxer.MetadataProvider implementation. If the value is set to null then the metadata from the input file is set as it is in the output file.

Method Detail

- 

create

public[InAppMuxer](InAppMuxer.html "class 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.

- 

getSupportedSampleMimeTypes

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