Page 1 of 1

Use plugins in libVLC program

Posted: 14 Apr 2017 18:35
by gmatarrubia
Hi all,
I'm building a libVLC based program. I am confused about management of libvlc_media_t and libvlc_media_list_t. What I'm trying to do is create a playlist with all .mp4 files in "/home/pi/videos/" directory and get their names. Later, I should be able to select a file from the playlist to play it. I think it's not necessary to use dirent.h functions because libVLC can already manage files and paths, isn't it?

All advices are welcome. thank you.

Re: Use plugins in libVLC program

Posted: 14 Apr 2017 18:57
by RĂ©mi Denis-Courmont
LibVLC can play a directory, if you request one. But if you need some control over the order and/or selection of files, you'd better list the directory manually, and tell LibVLC to play files one by one.