ogg headers [MIME content-type]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
RTT
Forum Commoner
Posts: 38
Joined: Thu Jul 17, 2003 10:22 am
Location: Wolverhampton, UK
Contact:

ogg headers [MIME content-type]

Post 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? :(
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post 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)
RTT
Forum Commoner
Posts: 38
Joined: Thu Jul 17, 2003 10:22 am
Location: Wolverhampton, UK
Contact:

Post 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.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post 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...
Post Reply