how to connect to a VLC http generated stream

This forum is about all development around libVLC.
zodiak
New Cone
New Cone
Posts: 9
Joined: 10 Jul 2010 10:15

how to connect to a VLC http generated stream

Postby zodiak » 28 Sep 2010 11:58

Hello All,

I wrote a PC application that streams a file through http via VLC. I also made a client program running on a PC that connects to that stream and plays it. All is well with what I just described.

I now would like to use a non-VLC based http client to read the same stream.

The equipment I'm using allows me to connect to http servers but I need to write the full http client request string (like "GET filename"). On my client PC application - because it's VLC based - I write http://myserver:8080 and it "magically" starts playing the stream. How can I know the underlying http message exchange protocol? Is there a default filename that clients request?

I hope this is clear enough, please let me know if I need to explain it better.

TIA for all the help,
Cheers,
Rui

zodiak
New Cone
New Cone
Posts: 9
Joined: 10 Jul 2010 10:15

Re: how to connect to a VLC http generated stream

Postby zodiak » 28 Sep 2010 13:47

used a network sniffer:

the client sends:

GET / HTTP/1.1
Host: 192.168.11.3:8080
User-Agent: vlc/1.1.0 LibVLC/1.1.0
Range: bytes=0-
Icy-MetaData: 1

I'll try starting with sending GET / HTTP/1.1; is the rest needed?

Cheers,
Rui


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 4 guests