Mp3 播放器无法在 Firefox 中播放文件
播放器旨在通过存储在 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>
The player is meant to retrieve the mp3 file from the server through the path address that is stored in MySQL. It does this in Explorer but not in Firefox. Could anyone tell me why?
By the way the swf file of the player and the database is stored on the same server so there should be no problem with that.
<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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为发生这种情况是因为浏览器安全性。
尝试使用 http://code.google.com/p/swfobject/ 添加 Flash到页面。
I think it happens because of browser security.
Try to use http://code.google.com/p/swfobject/ to add flash to page.