victormedranop Well-Known Member Licensed User Longtime User May 2, 2016 #1 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) Code: Copy 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
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) Code: Copy 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 May 2, 2016 #2 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
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
victormedranop Well-Known Member Licensed User Longtime User May 2, 2016 #3 how can i manage the return of the function complete when finish the first song? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 2, 2016 #4 You cannot. Play the first song and increase the current index (a global variable) by one. In the Complete example play the next song and increase it again. Upvote 0
You cannot. Play the first song and increase the current index (a global variable) by one. In the Complete example play the next song and increase it again.
victormedranop Well-Known Member Licensed User Longtime User May 2, 2016 #5 Exactly. I use videoview_Complete to control a variable to start a function decreasing de list then return the original value. thanks !!!! Upvote 0
Exactly. I use videoview_Complete to control a variable to start a function decreasing de list then return the original value. thanks !!!!