mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Notify the client when ExoPlayer fallbacks to a different codec.
PiperOrigin-RevId: 377602447
This commit is contained in:
parent
efdd55fad5
commit
71fb7411ce
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue