fix(android): fix tracks selection

This commit is contained in:
olivier bouillet 2023-01-02 21:52:41 +01:00
parent 7cd164ea2c
commit 8c95464788

View File

@ -1687,6 +1687,7 @@ class ReactExoplayerView extends FrameLayout implements
DefaultTrackSelector.Parameters selectionParameters = trackSelector.getParameters()
.buildUpon()
.setRendererDisabled(rendererIndex, false)
.clearOverridesOfType(selectionOverride.getType())
.addOverride(selectionOverride)
.build();
trackSelector.setParameters(selectionParameters);