[icecast-dev] icecast2 ogg vorbis client request headers

Michael Smith msmith at xiph.org
Thu Apr 1 20:46:19 PST 2004



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

--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Icecast-dev mailing list