Changing the default web interface library folder

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Flec
New Cone
New Cone
Posts: 2
Joined: 24 Jan 2013 20:37

Changing the default web interface library folder

Postby Flec » 24 Jan 2013 20:46

Hi, apologies if this was already covered but I've had a search and I couldn't see anything.
I've setup VLC to enable the web interface and I'm using Remote for VLC to control playback. My only problem is Remote for VLC has an option to play from 'Library' which gives me a folder browser, however this defaults to my Windows user's 'My Documents' folder, but I don't keep any of my media there because my main hard disk isn't big enough.
Presumably VLC provides this folder listing somehow but I can't find anything in the http lua files, is there a way to configure this? My only other alternative would be to setup a load of playlists in that folder but that's far from ideal.

Thanks for your time

Wormpje
New Cone
New Cone
Posts: 1
Joined: 28 May 2013 20:55

Re: Changing the default web interface library folder

Postby Wormpje » 28 May 2013 21:05

I've got the same question and cant find the solution anywhere. Did you, in the meantime, found where to change the default browse-folder? Its very irritating to navigate to your media folder over and over again. Cant understand why no one else has this question...
I hope someone has the solution for this!

Flec
New Cone
New Cone
Posts: 2
Joined: 24 Jan 2013 20:37

Re: Changing the default web interface library folder

Postby Flec » 29 May 2013 00:22

Sorry, didn't find anything myself either

conejodelmal
New Cone
New Cone
Posts: 1
Joined: 02 Aug 2013 15:20

Re: Changing the default web interface library folder

Postby conejodelmal » 02 Aug 2013 15:27

Hi @ all,
I am also desperatly searching for a solution for this.. i also have a tiny system drive... is there any way to achieve this?
thanks

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: Changing the default web interface library folder

Postby Jean-Baptiste Kempf » 05 Aug 2013 14:44

Sorry, so far, there is no way.
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.

jack44556677
New Cone
New Cone
Posts: 1
Joined: 23 Sep 2014 03:24

Re: Changing the default web interface library folder

Postby jack44556677 » 23 Sep 2014 03:31

Someone please chime in if there is a better way (as this thread has been dormant for some time)....

This is a working solution/workaround. Although it is a little extreme.

The link below explains how to change the location of a folder such as My Documents (the path that the "Open" button directs to by default through the webapp). Just change the location of "My Documents" to your sharedrive/media file path, and unless you really want to, click no when it asks if you want to copy all of your documents to the new location you have assigned. Now the vlc remote web page will default to that assigned location.

http://windows.microsoft.com/en-us/wind ... =windows-7

MiniNelson
New Cone
New Cone
Posts: 1
Joined: 07 Mar 2017 02:50

Re: Changing the default web interface library folder

Postby MiniNelson » 07 Mar 2017 02:53

1) Edit c:\Program Files\VideoLAN\VLC\lua\http\js\controllers.js
2) Find the line: dir = dir == undefined ? 'file://~' : dir;
3) Change it to something like: dir = dir == undefined ? 'file:///C:/MyDir/Audio' : dir;


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 7 guests