Android Question Exoplayer 3 Controller visibility

Abdou1283

Member
Licensed User
Longtime User
Today, i update exoplayer to the version 3.02, but some functions, but some functions that were working in the previous version no longer work
for example if i would check the controller visibility, i use this function, but now i get an error

B4X:
    Dim jo As JavaObject  = SimpleExoPlayerView1

    Dim isControllerVisible As Boolean
    isControllerVisible=jo.RunMethod("isControllerVisible", Null)

    If isControllerVisible Then
        jo.RunMethod("hideController", Null)
    Else
        jo.RunMethod("showController", Null)
    End If


B4X:
java.lang.RuntimeException: Method: isControllerVisible not found in: androidx.media3.ui.PlayerView
 

Abdou1283

Member
Licensed User
Longtime User
Thank you for the reply.
I know this option but i would like to check if the controller is visible or not.
 
Upvote 0
Top