Android Question Dynamically create Exoplayer View at runtime

Asim A Baki

Active Member
Licensed User
Longtime User
I need to create SimpleExoPlayerView at runtime to be able to play multiple videos

SimpleExoPlayerView.initialize("") gives an error
any solution?
 

DonManfred

Expert
Licensed User
Longtime User
And you think without posting the complete error we can help?????
 
Upvote 0

analizer3816

Member
Licensed User
Longtime User
Create a layout file with SimpleExoPlayerView named player1. Make sure that there is a global variable with that name.
B4X:
Dim players As List
players.Initialize
For i = 1 to 10
Activity.LoadLayout("LayoutFileWithPlayer")
players.Add(player1)
Next

can you explain about initialize simpleexoplayerview with code ?
because I cannot load layout to overlay window.

I see simpleexoplayerview.initialize(arg1 as string) but I don't know about arg1
please give me a sample.

thanks
 
Upvote 0
Top