Config file

VLC for Android and Chrome OS specific usage questions
kostyan
Blank Cone
Blank Cone
Posts: 34
Joined: 15 Jun 2012 12:07
VLC version: 2.1.0-git
Operating System: Linux
Location: Berlin, Germany

Config file

Postby kostyan » 09 Oct 2012 18:09

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?
Konstantin Miller
Technische Universität Berlin

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Config file

Postby Jean-Baptiste Kempf » 09 Oct 2012 21:42

Maybe it does --ignore-config ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

kostyan
Blank Cone
Blank Cone
Posts: 34
Joined: 15 Jun 2012 12:07
VLC version: 2.1.0-git
Operating System: Linux
Location: Berlin, Germany

Re: Config file

Postby kostyan » 11 Oct 2012 09:23

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.
Konstantin Miller
Technische Universität Berlin

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: Config file

Postby edwardw » 11 Oct 2012 13:01

Try adding --no-ignore-config

kostyan
Blank Cone
Blank Cone
Posts: 34
Joined: 15 Jun 2012 12:07
VLC version: 2.1.0-git
Operating System: Linux
Location: Berlin, Germany

Re: Config file

Postby kostyan » 11 Oct 2012 14:08

It's working! Thanks!
Konstantin Miller
Technische Universität Berlin


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 13 guests