public final class

DefaultMuxer.Factory

extends java.lang.Object

implements Muxer.Factory

 java.lang.Object

↳androidx.media3.transformer.DefaultMuxer.Factory

Overview

A androidx.media3.transformer.Muxer.Factory for DefaultMuxer.

Summary

Constructors
publicFactory()

Creates an instance.

publicFactory(long videoDurationMs)

Methods
public Muxercreate(java.lang.String path)

public <any>getSupportedSampleMimeTypes(int trackType)

public DefaultMuxer.FactorysetVideoDurationUs(long videoDurationUs)

Sets the duration of the video track (in microseconds) to enforce in the output.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Factory()

Creates an instance.

public Factory(long videoDurationMs)

Deprecated: Use DefaultMuxer.Factory.setVideoDurationUs(long) instead. Note that a conversion from milliseconds to microseconds is required to migrate to DefaultMuxer.Factory.setVideoDurationUs(long).

Methods

public DefaultMuxer.Factory setVideoDurationUs(long videoDurationUs)

Sets the duration of the video track (in microseconds) to enforce in the output.

The default is C.TIME_UNSET.

Parameters:

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

Returns:

This factory.

public Muxer create(java.lang.String path)

public <any> getSupportedSampleMimeTypes(int trackType)