Android Question use exoplayer buttons by keypress code

nedium

Active Member
Licensed User
Longtime User
Hello everyone
I wanted to know if there is a way to use the exoplayer buttons by code, I already managed to show the button panel but I would like to do it without showing it


the code to display the controls use

B4X:
    Dim joex As JavaObject = SimpleExoPlayerView1
    joex.RunMethod("showController", Null)



any help I appreciate
 

Attachments

  • 1607692812490.png
    1607692812490.png
    312 bytes · Views: 92

nedium

Active Member
Licensed User
Longtime User
Hi @Erel

I want to use these exoplayer plugins using this code


B4X:
    Dim joex As JavaObject = SimpleExoPlayerView1
    joex.RunMethod("getSubtitleView", Null)


I want to show the subtitles and also know the audio track that the video has and be able to change it

I know that exoplayer has those options but I will not execute them from b4a


I have seen options that are called
getSubtitleView (). setVisibility (View.VISIBLE)

regards
 
Upvote 0

nedium

Active Member
Licensed User
Longtime User
Don't do it.

Ok, I'm sorry

-----------


You can play or pause the playback using the player object.

if that can do it,

I wanted to know if I could change or select the audio or subtitle tracks

I know that the exoplayer library has many functions, but I wanted to know how to run them from B4X with JavaObject

any help would be useful thank you very much
 
Upvote 0
Top