mirror of
https://github.com/androidx/media.git
synced 2025-04-29 22:36:54 +08:00

When there is both audio and video track, then fragment creation is driven by video track (a combination of duration so far + next key frame). But if there is no video track, then the duration so far drives the fragment creation. Due to bug, when there is only audio track, only first fragment was created as expected and then a new fragment is created for every audio sample. PiperOrigin-RevId: 731257696 (cherry picked from commit d16fdcb8cc832909b1ff531a00e595c64df5c799)
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.