Commit 71fb7411 by olly Committed by bachinger

Notify the client when ExoPlayer fallbacks to a different codec.

PiperOrigin-RevId: 377602447
parent efdd55fa
...@@ -1038,6 +1038,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer { ...@@ -1038,6 +1038,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
DecoderInitializationException exception = DecoderInitializationException exception =
new DecoderInitializationException( new DecoderInitializationException(
inputFormat, e, mediaCryptoRequiresSecureDecoder, codecInfo); inputFormat, e, mediaCryptoRequiresSecureDecoder, codecInfo);
onCodecError(exception);
if (preferredDecoderInitializationException == null) { if (preferredDecoderInitializationException == null) {
preferredDecoderInitializationException = exception; preferredDecoderInitializationException = exception;
} else { } else {
......
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