Page 1 of 1

libVLC and Playlist

Posted: 10 Nov 2019 10:43
by cyberdelic
Hi there,
I use libVLC in an Android project using Java. It works really good. But now I need to play a bunch of videos directly after each other. How can I use a playlist? I found medialist, but did not find a way to add urls. Any help or example would be appreciated.
Thanks in advance

Re: libVLC and Playlist

Posted: 18 Nov 2019 04:06
by mfkl
Have a look at the M3U format to create your own playlist https://en.wikipedia.org/wiki/M3U

Re: libVLC and Playlist

Posted: 18 Nov 2019 10:05
by cyberdelic
Thanks, this was my workaround. But you need to put the M3U somewhere. Better would be to have an Object or a List you could fill in the API.

Re: libVLC and Playlist

Posted: 18 Nov 2019 10:11
by unidan
Hi, media_list is the correct way to go, but you need to add each media with https://www.videolan.org/developers/vlc/doc/doxygen/html/group__libvlc__media__list.html#gab1dea4f59a23ee3e151a34704f2b8bc5
Then play it with https://www.videolan.org/developers/vlc/doc/doxygen/html/group__libvlc__media__list__player.html