mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

This is inspired from TestExoPlayerBuilder. Adding this class has a few advantages: - It makes testing easier for apps by configuring Transformer for unit tests (for example, by setting the clock). - It removes the Transformer setters that apps should not use for unit testing (for example, the video MIME type should not be set because it would cause Transformer to transcode. - It allows us to add additional setters in the future, for example to build a Transformer that always fails. PiperOrigin-RevId: 704181927
Transformer module
Provides functionality for transforming media files.
Getting the module
The easiest way to get the module is to add it as a gradle dependency:
implementation 'androidx.media3:media3-transformer: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.