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

The renderers are currently constructing formats that consist of their input format with added PCM encoding. Such formats are not self-consistent, and this only works because DefaultAudioSink ignores the rest of the format if the format has a PCM encoding. It would not work if the sink implementation checked the MIME type, for example, which wouldn't be a strange or incorrect thing for it to do. The more correct approach is to construct a new format that properly represents the PCM that will be provided to the sink. This change also renames supportsOutput to supportsFormat, because AudioSink itself has both an input and an output side, and this method is actually evaluating support on the input side of the sink. PiperOrigin-RevId: 320396089
ExoPlayer extensions
ExoPlayer extensions are modules that depend on external libraries to provide additional functionality. Browse the individual extensions and their READMEs to learn more.