I have a mp3 flash player and it works perfectly even showing the loaded part of the song.
<embed src="player.swf" width="70" height="15"
FlashVars="song=songs/song.mp3"/>
But now I need to load the song from a .php file, so it would be like this way
<embed src="player.swf" width="70" height="15" FlashVars="song=song.php"/>
and this is my song.php
$filename="songs/song.mp3";
header("Expires: -1");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Content-type: audio/mpeg");
header("Content-Transfer-Encoding: binary");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0");
$len = filesize($filename);
header("Content-Length: $len;
");
$outname=$archivo;
header("Content-Disposition: application/octet-stream");
readfile($filename);
It works perfect with play/stop button, but the problem is that this way it doesn't show me the loaded part of the song.