Page 1 of 1

Config file

Posted: 09 Oct 2012 18:09
by kostyan
Is there any location VLC checks for existence of a config file on Android?

I didn't find one so I added --config /path/to/file to input arguments of libVLC in libvlcjni.c, but VLC seems still not to read the file. What would be the right way to let VLC use a configuration file on Android?

Re: Config file

Posted: 09 Oct 2012 21:42
by Jean-Baptiste Kempf
Maybe it does --ignore-config ?

Re: Config file

Posted: 11 Oct 2012 09:23
by kostyan
I didn't find any. These are the arguments that are passed to libvlc_new() in libvlcjni.c. The only one I added is --config.

Code: Select all

const char *argv[] = { "-I", "dummy", "--no-osd", "--no-video-title-show", "--no-stats", "--no-plugins-cache", "--no-drop-late-frames", "--avcodec-fast", "--config", "/mnt/sdcard/.automatichandover/vclrc", enable_time_stretch ? "--audio-time-stretch" : "--no-audio-time-stretch", use_opensles ? "--aout=opensles" : "--aout=android_audiotrack", }; libvlc_instance_t *instance = libvlc_new(sizeof(argv) / sizeof(*argv), argv);
Within my access module, I checked that var_InheritString(p_this, "config") returns the right value and the file can be opened for reading.

Re: Config file

Posted: 11 Oct 2012 13:01
by edwardw
Try adding --no-ignore-config

Re: Config file

Posted: 11 Oct 2012 14:08
by kostyan
It's working! Thanks!