On Mon, 2005-06-27 at 19:33, Michael Kamleitner wrote:> hi, > > icecast 2.2.0 has to be patched slightly to work with flash-players using > the sound-object - cant find the exact link to this, maybe one of the > developers can explain? I just added 4 lines at the end of > format_mp3_send_headers() in format_mp3.c: > > sock_write(client->con->sock, "Cache-Control: no-cache\r\n"); > sock_write(client->con->sock, "Pragma: no-cache\r\n"); > sock_write(client->con->sock, "Connection: keep-alive\r\n"); > sock_write(client->con->sock, "Content-Length: 54000000\r\n"); > > can't remember why that is need, but it was necessary to get it work ;)2.2 already sends a content length header for flash clients although with a larger value than what is shown above. It's very unlikely that the other 3 headers will make any difference. karl
> On Mon, 2005-06-27 at 19:33, Michael Kamleitner wrote: > > hi, > > > > icecast 2.2.0 has to be patched slightly to work with > flash-players using > > the sound-object - cant find the exact link to this, maybe > one of the > > developers can explain? I just added 4 lines at the end of > > format_mp3_send_headers() in format_mp3.c: > > > > sock_write(client->con->sock, "Cache-Control: no-cache\r\n"); > > sock_write(client->con->sock, "Pragma: no-cache\r\n"); > > sock_write(client->con->sock, "Connection: keep-alive\r\n"); > > sock_write(client->con->sock, "Content-Length: 54000000\r\n"); > > > > can't remember why that is need, but it was necessary to > get it work ;) > > 2.2 already sends a content length header for flash clients although > with a larger value than what is shown above. It's very unlikely that > the other 3 headers will make any difference. > > karlhi karl, I'm aware that u are the one who should now better than me ;), but I'm pretty sure that I have needed these patch to make my icecast 2.2.0 work with an internet explorer / flash-client... what I can't say is if it really needed all those 4 lines, maybe first 3 lines are not necessary... (or maybe I'm mixing up something, but I'm really pretty sure) greets, mike
On Wed, 2005-06-29 at 01:20, Michael Kamleitner wrote:> hi karl, > > I'm aware that u are the one who should now better than me ;), but I'm > pretty sure that I have needed these patch to make my icecast 2.2.0 work > with an internet explorer / flash-client... what I can't say is if it really > needed all those 4 lines, maybe first 3 lines are not necessary... > > (or maybe I'm mixing up something, but I'm really pretty sure)It's hard to say what flash/IE needs really, the content length did seem to be required but of course there may be other undocumented quirks. I don't use either of them personally, so if you get hard data on the matter then great. for reference, the content length is sent in format_mp3.c, format_mp3_send_headers, check the headers that are sent from the player. karl.
I was the one that mad ethe chnge to support flash clients, and Karl is correct, only the content-length was needed to enable it to begin working. I used the following player as a reference http://www.sonify.org/home/feature/remixology/026_mp3player/ . I'm assuming that all derivative players will use the same mechanism, and also I only testing with MP3 (of course because Flash doesn't currently support streaming anything but mp3). If you use the flash player mentioned in the artlcle with icecast 2.2 stock, and it still doesnt work, then please let us know... :) oddsock goes back to his vacation :) At 07:20 PM 6/28/2005, you wrote:> > On Mon, 2005-06-27 at 19:33, Michael Kamleitner wrote: > > > hi, > > > > > > icecast 2.2.0 has to be patched slightly to work with > > flash-players using > > > the sound-object - cant find the exact link to this, maybe > > one of the > > > developers can explain? I just added 4 lines at the end of > > > format_mp3_send_headers() in format_mp3.c: > > > > > > sock_write(client->con->sock, "Cache-Control: no-cache\r\n"); > > > sock_write(client->con->sock, "Pragma: no-cache\r\n"); > > > sock_write(client->con->sock, "Connection: keep-alive\r\n"); > > > sock_write(client->con->sock, "Content-Length: 54000000\r\n"); > > > > > > can't remember why that is need, but it was necessary to > > get it work ;) > > > > 2.2 already sends a content length header for flash clients although > > with a larger value than what is shown above. It's very unlikely that > > the other 3 headers will make any difference. > > > > karl > > >hi karl, > >I'm aware that u are the one who should now better than me ;), but I'm >pretty sure that I have needed these patch to make my icecast 2.2.0 work >with an internet explorer / flash-client... what I can't say is if it really >needed all those 4 lines, maybe first 3 lines are not necessary... > >(or maybe I'm mixing up something, but I'm really pretty sure) > >greets, >mike > >_______________________________________________ >Icecast mailing list >Icecast@xiph.org >http://lists.xiph.org/mailman/listinfo/icecast