get/set_Var with libVLC, possible?

This forum is about all development around libVLC.
zone
New Cone
New Cone
Posts: 4
Joined: 28 Jul 2009 13:39

get/set_Var with libVLC, possible?

Postby zone » 28 Jul 2009 13:48

I'm developing an app (with Delphi) that uses libvlc.dll to play/stream videos. I would like to get access to the vlc variables to make things like enable/disable recording.

Is it possible to get/set vlc variables without compiling code into VLC?

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

Re: get/set_Var with libVLC, possible?

Postby Rémi Denis-Courmont » 28 Jul 2009 21:14

libvlc_get_vlc_instance() returns the underlying VLC object. From there you can use the core VLC functions (from libvlccore library) such as var_Get/var_Set. However, you will need to rebuild your application with every new version. We don't maintain the libvlccore ABI.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

zone
New Cone
New Cone
Posts: 4
Joined: 28 Jul 2009 13:39

Re: get/set_Var with libVLC, possible?

Postby zone » 29 Jul 2009 11:38

OK, thanks.

calanor
Blank Cone
Blank Cone
Posts: 50
Joined: 08 May 2010 19:36

Re: get/set_Var with libVLC, possible?

Postby calanor » 11 May 2015 19:07

How?
I tried to include vlc_common.h, vlc_variables.h and others but I always get a lot of errors.

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

Re: get/set_Var with libVLC, possible?

Postby Rémi Denis-Courmont » 11 May 2015 19:56

libvlc_get_vlc_instance() was removed quite some time ago. It is no longer possible to change arbitrary internal variables.
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 8 guests