Back to Exoplayer

Muxer.Factory (ExoPlayer library)

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

latest2.1 KB
Original Source

Package com.google.android.exoplayer2.transformer

Interface Muxer.Factory

  • All Known Implementing Classes:DefaultMuxer.Factory, InAppMuxer.FactoryEnclosing interface:Muxer

public static interfaceMuxer.Factory

Factory for muxers.

Method Summary

All Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description | | --- | --- | --- | | 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 given C.TrackType. |

Method Detail

- 

create

[Muxer](Muxer.html "interface 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")

Returns a new muxer writing to a file. Parameters:path - The path to the output file.Throws:IllegalArgumentException - If the path is invalid.Muxer.MuxerException - If an error occurs opening the output file for writing.

- 

getSupportedSampleMimeTypes

[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)

Returns the supported sample MIME types for the given C.TrackType.