2012-02-22 73 views
0

播放器旨在通過存儲在MySQL中的路徑地址從服務器中檢索mp3文件。它在資源管理器中執行,而不是在Firefox中執行。有誰能告訴我爲什麼? 順便說一句,播放器和數據庫的SWF文件存儲在同一臺服務器上,所以應該沒有問題。Mp3播放器不在Firefox中播放文件

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="165" height="37" id="niftyPlayer1" align=""> 
    <param name=movie value="http:..../music/niftyplayer.swf?<?php 
$conn = mysql_connect("....", "....", "...."); 
mysql_select_db ("...."); 
$query = ("select * from music where music_ID = 1"); 
$result = mysql_query($query) or die(mysql_error()." ".$query); 
while($row = mysql_fetch_array($result)) 
{ 
echo 'file=' . $row['content'] . ''; 

} 
mysql_close($conn); 
?> 
&as=0"> 
    <param name=quality value=high> 
    <param name=bgcolor value=#FFFFFF> 
    <embed src="http://..../music/niftyplayer.swf?" quality=high bgcolor=#FFFFFF width="165" height="37" name="niftyPlayer1" align="" type="application/x-shockwave-flash" swLiveConnect="true" pluginspage="http://www.macromedia.com/go/getflashplayer"> 
    </embed> 
    </object> 

回答

0

我認爲這是因爲瀏覽器的安全性。

嘗試使用http://code.google.com/p/swfobject/將閃光燈添加到頁面。

+0

感謝,但自己同時出現在IE和FireFox它只是FF不播放該文件 – ozzysmith 2012-02-22 16:43:42

+0

是的,它出現的球員,但它停用,直到你點擊它。 – Electronick 2012-02-22 16:51:43

0
**Issues** 
[http://stackoverflow.com/questions/4923136/why-doesnt-firefox-support-mp3-file-format-in-audio][1] 

Licensing issues: HTML5 video and H.264 – what history tells us and why we’re standing with the web and Mozilla defends Firefox's HTML5 support for only Ogg Theora video (despite their titles, they both also talk about MP3 licensing, albeit briefly). 

All you can do is fall back to Flash and play them through that.