Hello everyone
I wanted to know how to play videos in exoplayer at their highest quality.
With this code I select it, but I wanted to know if it can be done automatically, if it is 1920x1080 or any other, that track will be loaded automatically. There are also videos with the same resolution, but with a higher bitrate, and I don't know how to do that.
Thank you.
I wanted to know how to play videos in exoplayer at their highest quality.
With this code I select it, but I wanted to know if it can be done automatically, if it is 1920x1080 or any other, that track will be loaded automatically. There are also videos with the same resolution, but with a higher bitrate, and I don't know how to do that.
Thank you.
B4X:
Sub Player_Ready
Log("Ready")
SetVideoResolution
End Sub
Private Sub SetVideoResolution
Dim jo As JavaObject = xplayer
Dim TrackSelector As JavaObject = jo.GetField("trackSelector")
TrackSelector.RunMethod("setParameters", Array(TrackSelector.RunMethodJO("buildUponParameters", Null).RunMethod("setMaxVideoSize", Array(1920,1080))))
End Sub