Commit b3981be8 by tonihei

Limit adaptive selections to same level of decoder support

Adaptive video and audio selections will be limited to formats with
the same level of DecoderSupport and HardwareAccelatationSupport, unless
specifically allowed by new flags.

If different levels of decoder support are available, prefer primary
over fallback decoders and hardware-accelerated over software decoders
(in this order). For video, also prefer more efficient codecs, if both
are supported by hardware-accelerated primary decoders.

Issue: google/ExoPlayer#4835
Issue: google/ExoPlayer#9565
PiperOrigin-RevId: 422345048
parent 4145273b
...@@ -34,6 +34,12 @@ ...@@ -34,6 +34,12 @@
* Update video track selection logic to take preferred MIME types and role * Update video track selection logic to take preferred MIME types and role
flags into account when selecting multiple video tracks for adaptation flags into account when selecting multiple video tracks for adaptation
((#9519)[https://github.com/google/ExoPlayer/issues/9519]). ((#9519)[https://github.com/google/ExoPlayer/issues/9519]).
* Update video and audio track selection logic to only choose formats for
adaptive selections that have the same level of decoder and hardware
support ((#9565)[https://github.com/google/ExoPlayer/issues/9565]).
* Update video track selection logic to prefer more efficient codecs if
multiple codecs are supported by primary, hardware-accelerated decoders
((#4835)[https://github.com/google/ExoPlayer/issues/4835]).
* Android 12 compatibility: * Android 12 compatibility:
* Upgrade the Cast extension to depend on * Upgrade the Cast extension to depend on
`com.google.android.gms:play-services-cast-framework:20.1.0`. Earlier `com.google.android.gms:play-services-cast-framework:20.1.0`. Earlier
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment