fix(android): optimize lag on old android (#3860)

* fix: enable forceEnableMediaCodecAsynchronousQueueing for old android device
This commit is contained in:
Olivier Bouillet 2024-05-31 08:58:29 +02:00 committed by GitHub
parent 5c6dfb26c5
commit c2ce66ed26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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