[vlc-devel] http streaming: how do i sync with vlc?

digi_casi at freenet.de digi_casi at freenet.de
Fri Aug 5 20:59:07 CEST 2005

An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20050805/ddd72a35/attachment.html>
-------------- next part --------------
i'm developing a streaming client for the dreambox.
it already works: i can stream dvds and files from pc thru vlc to the box.
however, picking up the video stream by the box does not work reliably. sometimes it works, sometimes not.
here's what i do on the box:
- ?control=empty
- ?control=add&url=<mrl>
- ?sout=<sout>
- fd = socket(AF_INET, SOCK_STREAM, 0);
- connect(fd, (struct sockaddr *)&ads, adsLen);
- const char * msg = "GET /dboxstream HTTP/1.0\r\n\r\n";
  send(skt, msg, strlen (msg), 0);
- then i wait for: "HTTP/1.0 200"
- once received 200 streaming starts.

this works sometimes and sometimes not...
is there a way to better synchronize with vlc?
it seems like the method i'm using is very timing dependent. if vlc isin a convienent state then it responds with 200 OK otherwise I get a404 oder the GET request even fails sometimes...
so, any advice?
thanks in advance, 

More information about the vlc-devel mailing list