Page 1 of 1

Using VLC as a subprocess(Controlling VLC in C)

Posted: 26 Oct 2005 13:27
by Lala
Hi to all,

I can use the "vlc.exe paramaters " im my C program using "system" command.
But after this I cannot control VLC. VLC runs on itself and only hot keys control is possible.Also "system" command in C is blocking .

Can anyone suggest a solution that gives me a control of VLC(play,stop etc.) in my C program.

Best Regards...

Posted: 26 Oct 2005 20:39
by AsMaX
Hi,
you can link your program with the library libvlc, which gives you a very basic API to control vlc, but it could be enough for you. You can have a look at include/vlc/vlc.h

Posted: 03 Nov 2005 09:10
by oscarml
hi Lala,

Have you probed that solution? does ti work fine?
Then, can you send my any little example about adding a playlistitem or something like this. I haven't much experience in C programing.

thanks a lot

Posted: 03 Nov 2005 11:58
by oscarml
hi

First of all I must say I'm just begining in programming.

I want to make a C program (well, C++ but I think the process is the same, isn`t it?) to control vlc, in the same way Lala wants.

I'm using dev-cpp, but I'm not sure about what I have to add in my project.

I've token this directories from vlc source code to my workspace (the place where I have my main program in c++ (the program which use VLC_Play, and other funtions).

./lib
./src
./include and

I've configured this in my project options

for library dir. -> ./lib
for include dir. -> ./include & ./include/vlc
for resource dir. -> ./src

When I try to compile my program, I've this message:

C:\Dev-Cpp\experimentos\CONTROL VLC\Makefile.win [Build Error]

No rule to make target `C:/Dev-Cpp/experimentos/CONTROL', needed by `control.o'. Stop.

Have I to change the vlc makefile? I hope I don't... I think that is easier than I'm trying to do

please... HELP