
to LAST_SAMPLE_DURATION_BEHAVIOR_SET_FROM_END_OF_STREAM_BUFFER_OR_DUPLICATE_PREVIOUS This CL also combines LAST_SAMPLE_DURATION_BEHAVIOR_SET_FROM_END_OF_STREAM_BUFFER and LAST_SAMPLE_DURATION_BEHAVIOR_DUPLICATE_PREVIOUS. The reason for combining the two enums is that, when the option to use END_OF_STREAM_BUFFER is selected and if the EOS buffer is not provided then the muxer anyways fallbacks to duplicate duration behavior. The last sample with 0 durations seems less useful so change the default behavior to non-zero duration. This will also match the behavior with MediaMuxer. PiperOrigin-RevId: 675189932
Muxer module
Provides functionality for producing media container files.
Getting the module
The easiest way to get the module is to add it as a gradle dependency:
implementation 'androidx.media3:media3-muxer:1.X.X'
where 1.X.X
is the version, which must match the version of the other media
modules being used.
Alternatively, you can clone this GitHub project and depend on the module locally. Instructions for doing this can be found in the top level README.