[icecast-dev] icecast2 ogg vorbis client request headers

Geoff Shang gshang at pacific.net.au
Fri Apr 2 04:28:17 PST 2004



On Fri, 2 Apr 2004, Dave St John wrote:

> I have tried that, but not sure if i am doing that right.
> in connection.c starting line 847 i believe, it sends this
>             bytes = sock_write(client->con->sock,
>                     "HTTP/1.0 200 OK\r\n"
>                     "Content-Type: audio/x-mpegurl\r\n\r\n"
>                     "http://%s:%d%s\r\n",
>                     host,
>                     port,
>                     sourceuri

That looks like the auto-generated .M3U stuff there - that is
audio/mpegurl.  The MP3 itself should be audio/mpeg.

> i cant be sure tho if its being sent at all, what is the myme type for ogg
> vorbis?

the Ogg Vorbis MIME type is application/ogg.  This may or may not help you,
depending on how smart Winamp is nowadays.  Certainly time was that Winamp
relied on the .ogg extension to know that it was ogg vorbis, and in truth
this may be your problem.  Maybe you'll have to get your web server to pass
.ogg as a PHP script?  <yuck>

Geoff.

<p>--- >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