DefaultMuxer.Factory
class DefaultMuxer.Factory : Muxer.Factory
A Muxer.Factory for DefaultMuxer.
Summary
Public constructors |
|---|
Factory()Creates an instance. |
|
This function is deprecated. Use |
Public functions |
|
|---|---|
Muxer! |
Returns a new |
ImmutableList<String!>! |
getSupportedSampleMimeTypes(@C.TrackType trackType: Int)Returns the supported sample |
DefaultMuxer.Factory! |
@CanIgnoreReturnValueSets the duration of the video track (in microseconds) to enforce in the output. |
Boolean |
Whether the muxer supports writing negative timestamps into an edit list to instruct players to ignore these samples. |
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.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 C.TrackType.
setVideoDurationUs
@CanIgnoreReturnValue
fun setVideoDurationUs(videoDurationUs: Long): DefaultMuxer.Factory!
Sets the duration of the video track (in microseconds) to enforce in the output.
The default is TIME_UNSET.
| Parameters | |
|---|---|
videoDurationUs: Long |
The duration of the video track (in microseconds) to enforce in the output, or |
| Returns | |
|---|---|
DefaultMuxer.Factory! |
This factory. |
supportsWritingNegativeTimestampsInEditList
fun supportsWritingNegativeTimestampsInEditList(): Boolean
Whether the muxer supports writing negative timestamps into an edit list to instruct players to ignore these samples.