Using libVLC to update plugin variables
Posted: 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
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