I have a bit of a problem with streaming MP3s in IE and Chrome (it works fine in Firefox)
We have a voicemail server. The web app streams the wav file by converting it on the fly to MP3 (using lame, not great, but we have to do it is this way because of limitations of asterisk) and then outputs the content as a binary stream.
header("Content-Type: audio/mpeg");
header("Content-Transfer-Encoding: binary");
header('X-Pad: avoid browser bug');
header('Cache-Control: no-cache');
$file->readFromInbox($f);
The MP3 audio player we're using is: http://wpaudioplayer.com/standalone/
If the file is (I think) less than 100k in size, the audio streams fine and the MP3 flash audio player status bar is updated(the seconds go up, and the bar moves along).
However, if the file is bigger than 100k then there is a problem. The audio plays in IE7/8 and Chrome but the status bar doesn't change. It continues to say 'Connecting...' even though the audio is being played. Odd.
In Firefox, I have no problems.
What could be the problem? Why does firefox not have any problems but IE and Chrome? Do I need to specify the size of the file being streamed? (Which isn't possible as the file is being converted on the fly and being outputted straight away because of the passthru command)
Thanks guys!