fix(android): enableDecoderFallback to decrease DECODER_ERROR issue (#3416)

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
This commit is contained in:
Olivier Bouillet 2024-03-12 22:38:24 +01:00 committed by GitHub
parent 7c4d19fa72
commit eaa72c6665
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -627,7 +627,8 @@ public class ReactExoplayerView extends FrameLayout implements
); );
DefaultRenderersFactory renderersFactory = DefaultRenderersFactory renderersFactory =
new DefaultRenderersFactory(getContext()) new DefaultRenderersFactory(getContext())
.setExtensionRendererMode(DefaultRenderersFactory.EXTENSION_RENDERER_MODE_OFF); .setExtensionRendererMode(DefaultRenderersFactory.EXTENSION_RENDERER_MODE_OFF)
.setEnableDecoderFallback(true);
// Create an AdsLoader. // Create an AdsLoader.
adsLoader = new ImaAdsLoader adsLoader = new ImaAdsLoader