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.
also, correct content type audio/mpeg
. others using not correct.
Comments
Post a Comment