
Some media can read color info values from the bitstream and may partially set some of the SDR default values in Format.ColorInfo. Setting these default values for SDR can confuse some codecs and may also prevent adaptive ABR switches if not all ColorInfo values are set in exactly the same way. We can avoid any influence of HDR color info handling by disabling setting the color info MediaFormat keys for SDR video and also avoid codec reset at format changes if both formats are SDR with slightly different ColorInfo settings. To identify "SDR" ColorInfo instances, we need to do some fuzzy matching as many of the default values are assumed to match the SDR profile even if not set. Issue: androidx/media#1158 PiperOrigin-RevId: 617473937
ExoPlayer module
This module provides ExoPlayer
, the Player
implementation for local media
playback on Android.
Getting the module
The easiest way to get the module is to add it as a gradle dependency:
implementation 'androidx.media3:media3-exoplayer: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.