Using VLC as a subprocess(Controlling VLC in C)

*nix specific usage questions
Lala

Using VLC as a subprocess(Controlling VLC in C)

Postby Lala » 26 Oct 2005 13:27

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...

AsMaX
Cone that earned his stripes
Cone that earned his stripes
Posts: 139
Joined: 05 Mar 2004 09:00
Location: Antibes, France

Postby AsMaX » 26 Oct 2005 20:39

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

oscarml
Blank Cone
Blank Cone
Posts: 19
Joined: 31 Mar 2005 12:10

Postby oscarml » 03 Nov 2005 09:10

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

oscarml
Blank Cone
Blank Cone
Posts: 19
Joined: 31 Mar 2005 12:10

Postby oscarml » 03 Nov 2005 11:58

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


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 67 guests