Android Question playlist base xml file

victormedranop

Well-Known Member
Licensed User
Longtime User
I have some problems making a playlist from a list. the fact is that I always get just a song
i have the list from and xml file.

i have my variable ready with all the data (double checked)

B4X:
    Dim playlist As List
    Dim video_player As VideoView


Sub play_list
   
    For i = 0 To playlist.Size
        video_player.LoadVideo("http",playlist.Get(i))
        video_player.Play
    Next
   
End Sub

Sub video_player_Complete
   
    Log("PLAYER COMPLETED FROM VIDEO MODULE")


End Sub
 

DonManfred

Expert
Licensed User
Longtime User
You need to build your own playlist. video_player does not provide such feature.

Start the first song. After the song finishes you get the next song from your playlist and play this song
 
Upvote 0

victormedranop

Well-Known Member
Licensed User
Longtime User
Exactly.

I use videoview_Complete to control a variable to start a function decreasing de list
then return the original value.

thanks !!!!
 
Upvote 0
Top