Page 1 of 1

how to set source dir for http module

Posted: 16 Aug 2011 02:36
by pstanton
I've just started trying to use the http interface and can't seem to get it to pick up any files to play.

The documentation says
% vlc -I http (--http-src /directory/ --http-host host:port)
The HTTP interface will start listening at host:port (localhost:8080 if omitted), and will reproduce the structure of /directory at http://host:port/ ( vlc_source_path/share/http if omitted ).
I have tried the following:

Code: Select all

vlc.exe --extraintf=http --http-host 0.0.0.0:8085
Omitting the 'http-src' switch should default to [vlc_source_path] and i'm assuming this means "C://Program Files/VideoLAN/VLC/share/http", however I tried putting a media file in every possible location under VideoLAN and it never showed up on the web interface.

And the following all result in "404 Not found (/)" showing on the web interface:

Code: Select all

vlc.exe --extraintf=http --http-host 0.0.0.0:8085 --http-src "c://Documents and Settings/.../stuff/"

Code: Select all

vlc.exe --extraintf=http --http-host 0.0.0.0:8085 --http-src "c:/Documents and Settings/.../stuff/"

Code: Select all

vlc.exe --extraintf=http --http-host 0.0.0.0:8085 --http-src "/Documents and Settings/.../stuff/"
Can someone shed some light on where the default source folder should exist, or how to set the path correctly?

Thanks, Paul.

ps this is winXP

Re: how to set source dir for http module

Posted: 16 Aug 2011 16:27
by VLC_help
http-src means directory of HTML source files. You don't put media files to there, you open them via HTTP interface.

Re: how to set source dir for http module

Posted: 16 Aug 2011 20:51
by darius
Thanks VLC Help.

I exactly would like to test vlc http server, firefox plugin, running web page locally on PC (Windows XP).

Since vlc for windows is not coming with installer, I installed vlc manually ( copied vlc directory into c://program files/ ..

Previous versions of vlc for windows (XP) were coming with installker and created videolan directory.

Tried to test firefox plugin and again, there is no installable plugin on your webpage (referred by html code)
so I went to manual and installed 2 files manually (copied from vlc to mozilla plugins).

Now I am looking for some examples of working web pages with plugin embedded and failed to find anyone, since examples from manual don't work.

Could you kindly update your manual and provide valid linksa to working examples ?

The same for http server.
Just one working example, where to put multimedia files and one line code
how to test http interface locally.

I suggest nothing, but Twitter comes with http interface API and vlc http could be set up
to be run

http://...... /vlc/play
............../vlc/stop

embedding API into http address line to make things to work easily.