DefaultMuxer.Factory


class DefaultMuxer.Factory : Muxer.Factory


A Muxer.Factory for DefaultMuxer.

Summary

Public constructors

Creates an instance with videoDurationMs set to TIME_UNSET.

Factory(videoDurationMs: Long)

Creates an instance.

Public functions

Muxer!
create(path: String!)

Returns a new Muxer.

ImmutableList<String!>!

Returns the supported sample MIME types for the given .

Public constructors

Factory

Factory()

Creates an instance with videoDurationMs set to TIME_UNSET.

Factory

Factory(videoDurationMs: Long)

Creates an instance.

Parameters
videoDurationMs: Long

The duration of the video track (in milliseconds) to enforce in the output, or TIME_UNSET to not enforce. Only applicable when a video track is added.

Public functions

create

fun create(path: String!): Muxer!

Returns a new Muxer.

Parameters
path: String!

The path to the output file.

Throws
androidx.media3.muxer.Muxer.MuxerException

If an error occurs opening the output file for writing.

getSupportedSampleMimeTypes

fun getSupportedSampleMimeTypes(@C.TrackType trackType: Int): ImmutableList<String!>!

Returns the supported sample MIME types for the given .