Using libVLC to update plugin variables

This forum is about all development around libVLC.
alex4801
New Cone
New Cone
Posts: 8
Joined: 22 May 2014 19:03

Using libVLC to update plugin variables

Postby alex4801 » 19 Jan 2022 23:43

Which calls to libVLC are used to update plugin variables?

The plugin I'm working with (dynamicoverlay.c) registers for variable changes using var_AddCallback().

It listens for changes to the "overlay-input" and "overlay-output" variables and I need to update the value of these variables. How do I do that?

The reason I need to do this is because I have two media_players and I need each media_player to specify its own input and output paths to the plugin. The paths are first specified during vlc instance creation (... sub-source overlay(input=/tmp/ovc1, output=/tmp/ovr1)), but these are FIFOs and each player obviously needs its own set.

Dynamic overlay works great, by the way.

Thanks,
Alex

alex4801
New Cone
New Cone
Posts: 8
Joined: 22 May 2014 19:03

Re: Using libVLC to update plugin variables

Postby alex4801 » 20 Jan 2022 06:15

There used to be a library call "VLC_VariableSet," which appears to have been removed quite some time ago. That's exactly the functionality I'm looking for- a way to set a VLC variable via a library call. Is there any way to do that today?

Thanks.

alex4801
New Cone
New Cone
Posts: 8
Joined: 22 May 2014 19:03

Re: Using libVLC to update plugin variables

Postby alex4801 » 20 Jan 2022 19:19

I was able to work around this by instantiating multiple instances of VLC and passing the different startup options to each.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 11 guests