Page 1 of 1

Using libVLC to update plugin variables

Posted: 19 Jan 2022 23:43
by alex4801
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

Re: Using libVLC to update plugin variables

Posted: 20 Jan 2022 06:15
by alex4801
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.

Re: Using libVLC to update plugin variables

Posted: 20 Jan 2022 19:19
by alex4801
I was able to work around this by instantiating multiple instances of VLC and passing the different startup options to each.