[icecast-dev] icecast2 ogg vorbis client request headers

Michael Smith
Fri, 06 Aug 2004 14:57:40 -0000

On Friday 02 April 2004 12:54, Dave St John wrote:
> Well the code itself is what i took from tom peppers sc proxy script and
> incorperated our own auth system for icecast2
> i know i got it close with ogg and it seems to be when i tweak the
> $str.=fread($sp,4096);
> bit amount, i get different results, 4096 works fine for mp3 on icecast2
> and shoutcast, but im assuimg maybe there is more or less to read from the
> ogg headers?? if so what would be the correct amount?
>

The easiest (if my guesses as to how PHP works are right) and most correct
change to your script would be to change the line:
        echo substr($str,strpos($str,"\r\n\r\n")+4);
to
        echo $str;

This will be more correct for mp3 as well.

Mike