Private Sub SwitchTargetPlayerView(FullScreenIsDestination As Boolean)
Dim mp As B4XMainPage = B4XPages.MainPage
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