Fix(android): allow to select tracks with exceeded capabilities for more flexibility (#3791)

* perf: ensure we do not provide callback to native if no callback provided from app

* chore: rework bufferConfig to make it more generic and reduce ReactExoplayerView code size

* chore: improve issue template

* fix(android): avoid video view flickering at playback startup

* fix: allow to select Exceeded Constraints tracks for more playback flexibilities
This commit is contained in:
Olivier Bouillet 2024-05-20 15:36:54 +02:00 committed by GitHub
parent 77f7255c72
commit d272a86f20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1978,6 +1978,9 @@ public class ReactExoplayerView extends FrameLayout implements
DefaultTrackSelector.Parameters selectionParameters = trackSelector.getParameters()
.buildUpon()
.setExceedAudioConstraintsIfNecessary(true)
.setExceedRendererCapabilitiesIfNecessary(true)
.setExceedVideoConstraintsIfNecessary(true)
.setRendererDisabled(rendererIndex, false)
.clearOverridesOfType(selectionOverride.getType())
.addOverride(selectionOverride)