The full screen exoplayer by erel will not allow me to use the simpleexoplayer. There is no simpleexoplayer global declaration. How do i make use of the simpleexoplayer. It contains a switchtargetview.
Full Screen Demo
Full Screen Demo
B4X:
Private Sub SwitchTargetPlayerView(FullScreenIsDestination As Boolean)
Dim mp As B4XPage3 = B4XPages.GetPage("Media Player")
Dim jo As JavaObject
Dim Player As Object = mp.Player.As(JavaObject).GetField("player")
jo.InitializeStatic("androidx.media3.ui.PlayerView")
jo.RunMethod("switchTargetView", Array(Player, IIf(FullScreenIsDestination, mp.SimpleExoPlayerView1, SimpleExoPlayerView1), IIf(FullScreenIsDestination, SimpleExoPlayerView1, mp.SimpleExoPlayerView1)))
End Sub