2012-02-22 5 views
0

プレーヤーは、MySQLに格納されているパスアドレスを使用して、サーバーからmp3ファイルを取得します。これはエクスプローラでは実行されますが、Firefoxでは実行されません。誰も私になぜ教えてもらえますか? ところで、プレイヤーとデータベースのswfファイルは同じサーバーに格納されているので、問題はありません。Mp3 Playerは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

感謝が、プレイヤー自身がFFがファイル – ozzysmith

+0

を再生していないそのことだけIEとFirefoxの両方に表示され、あなたがそれをクリックするまではい、それは無効に表示されますが、。 – Electronick

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. 
関連する問題