Page 1 of 1

vlc.config does not work

Posted: 09 Aug 2021 22:23
by sbrbot
I have VLC v3.0.16 and when I try to use vlc.config.get() or vlc.config.set() functions I get the following error message:

for example: vlc.config.set("a","b")

lua warning: Error while running script C:\Program Files\VideoLAN\VLC\lua\extensions\vlc-addons-tutorial.lua, function activate(): ...\VideoLAN\VLC\lua\extensions\vlc-addons-tutorial.lua:19: VLC lua error in file /home/jenkins/workspace/vlc-release/windows/vlc-release-win32-x64/extras/package/win32/../../../modules/lua/libs/configuration.c line 70 (function vlclua_config_get)

Seems that something is not compiled ok in VLC!

Re: vlc.config does not work

Posted: 14 Aug 2021 19:34
by mederi
Check the "vlcrc" file for available options you can get/set.

Re: vlc.config does not work

Posted: 17 Aug 2021 22:10
by sbrbot
I think that I misunderstood this functionality. I thought that this is mechanism for all programs (addons) to store their parameters (like repository file).

Looking into vlc.config.configdir() and vlcrc file I understood that this file is primarily for storing VLC player's own parameters. Later on, for my addon I created in the same folder my own configuration file and read/write parameters using classic io.read()/io.write().

However why this vlc.config.set() i vlc.config.get() functions cannot be used to explot vlcrc file for storing parameters of my addon as well? Seems that vlc.config.set() does not want to store my own parameter into vlcrc file!