播放器旨在通过存储在MySQL中的路径地址从服务器检索mp3文件。它在资源管理器中执行此操作,但不在Firefox中执谁能告诉我为什么? 顺便说一下,播放器和数据库的swf文件存储在同一台服务器上,所以应该没有问题。
<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 :(得分:0)
我认为这是因为浏览器的安全性。
尝试使用http://code.google.com/p/swfobject/向页面添加Flash。
答案 1 :(得分: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.