Mp3 播放器无法在 Firefox 中播放文件

发布于 2025-01-08 06:15:28 字数 1137 浏览 0 评论 0原文

播放器旨在通过存储在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

空名 2025-01-15 06:15:28

我认为发生这种情况是因为浏览器安全性。

尝试使用 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.

满意归宿 2025-01-15 06:15:28
**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.
**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.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文