Page 1 of 1

HTTP interface

Posted: 12 Dec 2006 14:20
by sepi_1982
Hello i am trying to use VLM combined with HTTP interface.
using command line, i managed to add my files to the playlist using this:

vlc -I http [--http-src /sounds/mp3/ --http-host localhost:1234]

but i am unable to access the files with another VLC player over HTTP. For example if i locally try to open this address with VLC: http://localhost:1234/test.mp3 it does not work.

the same if i try http://localhost:1234/sounds/test.mp3
did i misunderstood something?
thanks
sebastien

Re: HTTP interface

Posted: 27 Dec 2006 23:38
by dirtyd
Hello i am trying to use VLM combined with HTTP interface.
using command line, i managed to add my files to the playlist using this:

vlc -I http [--http-src /sounds/mp3/ --http-host localhost:1234]

but i am unable to access the files with another VLC player over HTTP. For example if i locally try to open this address with VLC: http://localhost:1234/test.mp3 it does not work.

the same if i try http://localhost:1234/sounds/test.mp3
did i misunderstood something?
thanks
sebastien
yes you did.

Try this:

Code: Select all

vlc -I http
Then surf to http://admin:admin@localhost:8080/ and take a look around.
Read the docs on videolan.org about streaming and VOD and VLM and streaming over http.

If you just wanted that one file you could do this command:

Code: Select all

vlc -vvv -I http /sounds/mp3/test.mp3 --sout '#std{access=http,mux=raw,dst=localhost:1234}'
I recommend using -vvv all the time. It is very informative.

While testing you might want to add --loop to give you more time to test.

Like so:

Code: Select all

vlc -vvv -I http /sounds/mp3/test.mp3 --loop --sout '#std{access=http,mux=raw,dst=localhost:1234}'
Upon further review I think you might like to click the browse file button from the http interface locate at http://localhost:8080/ after the command:

Code: Select all

vlc -I http
It browses your file system and lets you queue up files and video into a playlist which can be stopped and started.