how to set source dir for http module

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
pstanton
New Cone
New Cone
Posts: 3
Joined: 20 Jul 2011 23:14

how to set source dir for http module

Postby pstanton » 16 Aug 2011 02:36

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

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: how to set source dir for http module

Postby VLC_help » 16 Aug 2011 16:27

http-src means directory of HTML source files. You don't put media files to there, you open them via HTTP interface.

darius
Blank Cone
Blank Cone
Posts: 28
Joined: 14 Jul 2010 00:58

Re: how to set source dir for http module

Postby darius » 16 Aug 2011 20:51

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.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 17 guests