libVLC and Playlist

This forum is about all development around libVLC.
cyberdelic
New Cone
New Cone
Posts: 4
Joined: 10 Nov 2019 10:40

libVLC and Playlist

Postby cyberdelic » 10 Nov 2019 10:43

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

mfkl
Developer
Developer
Posts: 727
Joined: 13 Jun 2017 10:41

Re: libVLC and Playlist

Postby mfkl » 18 Nov 2019 04:06

Have a look at the M3U format to create your own playlist https://en.wikipedia.org/wiki/M3U
https://mfkl.github.io

cyberdelic
New Cone
New Cone
Posts: 4
Joined: 10 Nov 2019 10:40

Re: libVLC and Playlist

Postby cyberdelic » 18 Nov 2019 10:05

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.

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: libVLC and Playlist

Postby unidan » 18 Nov 2019 10:11

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


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 8 guests