Hello.. I wanted to know if the following code is well written. since I don't have much experience handling java object.
I ask you this, because I want to extend the Exoplayer library through its classes using java object or reflection.
If I understood its use correctly, I can create a library (b4xlib) to use the methods of this library since they are documented. (https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/package-summary.html) I would appreciate any help. Thank you
B4X:
Private Sub tra
Dim jo As JavaObject = ExoTv
Dim TrackSelector As JavaObject = jo.GetField("trackSelector")
Dim parametros As JavaObject
parametros = TrackSelector.RunMethodJO("buildUponParameters", Null)
parametros.RunMethod("setMaxVideoSizeSd",Null)
parametros.RunMethod("build",Null)
TrackSelector.RunMethod("setParameters", Array(parametros))
End Sub