Page 1 of 1

ogg headers [MIME content-type]

Posted: Wed Oct 29, 2003 6:07 am
by RTT
Hi,

I recently made a rather cool PHP script that streams MP3s from network machines via http.
Basically the script is dropped into a directory, then connected to via winamp (or whatever), whereby the script reads the directory, loads any files with .mp3, .wav and .wma as extensions into an array and then pics a random file and streams it.

I however want to add OGG support and can't figure out why sending the following as a header doesn't work:

Code: Select all

header("Content-type: application/ogg")
'application/ogg' is the MIME content-type according to xiph.org.
Does PHP not support this header? :(

Posted: Wed Oct 29, 2003 1:48 pm
by m3rajk
as they say there, not everyone is moving to the new header yet...

are you testingon M$IE??? if so, you should be aware that M$IE had an end-of-life announcement (end of 2002)... so are they ever going to pick up something announced in 2003? (my guess is "Not with M$IE, but yes with the browser to be released in 2005 with the os that finally makes the 95/nt formats combined and will only be backward compatabile with xp)

Posted: Wed Oct 29, 2003 6:06 pm
by RTT
No-no, this has nothing to do with IE or internet browsers at all! :)

This is about media players such as winamp, windows media player, etc understanding headers that are being sent by my script.

Posted: Wed Oct 29, 2003 6:20 pm
by JAM
http://www.rfc-editor.org/rfc/rfc3534.txt

Looks allright to me, but check the text "The Ogg bitstream format is binary data, and must be encoded for non-binary transport; the Base64 encoding is suitable for Email. Binary encoding could also be used."

As I don't know how your (sounds interesting tho) script works I can only mention it...