internet explorer - Firefox/IE play streamed MP3 (Served with PHP) -


i'm having trouble playing locally created mp3 through firefox , ie, although work fine in chrome.

the file this:

header('content-type: application/octet-stream'); header('x-pad: avoid browser bug'); header('content-transfer-encoding: binary'); header('expires: 0'); header('cache-control: must-revalidate, post-check=0, pre-check=0'); header('pragma: public'); header('content-type: audio/mpeg, audio/x-mpeg, audio/x-mpeg-3, audio/mpeg3'); header('content-disposition: inline; filename="'.$file_name.'.mp3"'); header('content-length: ' . filesize('files/'.$file_name.'.mp3'));  ob_clean(); flush();  readfile('files/'.$file_name.'.mp3');  exit(); 

i don't type of error in ie, in firefox i'm met with:

http "content-type" of "audio/mpeg3" not supported. load of media resource [url here] 

i tried audio/mpeg content-type had same problem.

firefox not support mp3.

also, correct content type audio/mpeg. others using not correct.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -