From 690f17c594a3404413fdfd3107d4ef0c93f9283b Mon Sep 17 00:00:00 2001 From: olivier Date: Sun, 10 Dec 2023 21:20:39 +0100 Subject: [PATCH] fix: enableDecoderFallback to decrease DECODER_ERROR issue --- .../main/java/com/brentvatne/exoplayer/ReactExoplayerView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java index fef6d2479a..fcb85c0c3c 100644 --- a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +++ b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java @@ -620,7 +620,8 @@ private void initializePlayerCore(ReactExoplayerView self) { ); DefaultRenderersFactory renderersFactory = new DefaultRenderersFactory(getContext()) - .setExtensionRendererMode(DefaultRenderersFactory.EXTENSION_RENDERER_MODE_OFF); + .setExtensionRendererMode(DefaultRenderersFactory.EXTENSION_RENDERER_MODE_OFF) + .setEnableDecoderFallback(true); // Create an AdsLoader. adsLoader = new ImaAdsLoader