vlc.config does not work

Discuss your Lua playlist, album art and interface scripts.
sbrbot
New Cone
New Cone
Posts: 9
Joined: 06 Aug 2021 20:15

vlc.config does not work

Postby sbrbot » 09 Aug 2021 22:23

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!

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: vlc.config does not work

Postby mederi » 14 Aug 2021 19:34

Check the "vlcrc" file for available options you can get/set.

sbrbot
New Cone
New Cone
Posts: 9
Joined: 06 Aug 2021 20:15

Re: vlc.config does not work

Postby sbrbot » 17 Aug 2021 22:10

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!


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 2 guests