Use plugins in libVLC program

This forum is about all development around libVLC.
gmatarrubia
New Cone
New Cone
Posts: 1
Joined: 14 Apr 2017 18:04

Use plugins in libVLC program

Postby gmatarrubia » 14 Apr 2017 18:35

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Use plugins in libVLC program

Postby Rémi Denis-Courmont » 14 Apr 2017 18:57

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 29 guests