Skip to content

Commit

Permalink
fix(android): optimize lag on old android (#3860)
Browse files Browse the repository at this point in the history
* fix: enable forceEnableMediaCodecAsynchronousQueueing for old android device
  • Loading branch information
freeboub authored May 31, 2024
1 parent 5c6dfb2 commit c2ce66e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,8 @@ private void initializePlayerCore(ReactExoplayerView self) {
DefaultRenderersFactory renderersFactory =
new DefaultRenderersFactory(getContext())
.setExtensionRendererMode(DefaultRenderersFactory.EXTENSION_RENDERER_MODE_OFF)
.setEnableDecoderFallback(true);
.setEnableDecoderFallback(true)
.forceEnableMediaCodecAsynchronousQueueing();

// Create an AdsLoader.
adsLoader = new ImaAdsLoader
Expand Down

0 comments on commit c2ce66e

Please sign in to comment.