搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Why doesn't Firefox play background audio in webpages?

  • 2 个回答
  • 2 人有此问题
  • 52 次查看
  • 最后回复者为 cor-el

more options

I added a background music file to my webpage using FrontPage 2000. The audio will play in the "Preview" tab in but will not play in the Firefox browser window. <bgsound src="http://www.Your-Daily-Income.com/TVS/Audio/waves.mp3" loop="-1"> When I view the page source (http://screencast.com/t/w0p7Z2iLvMi0), and click on the hyperlinked "bgsound src" file I get this: (http://screencast.com/t/D49tu8NsKPH) Any help is appreciated. JMAC

I added a background music file to my webpage using FrontPage 2000. The audio will play in the "Preview" tab in but will not play in the Firefox browser window. <bgsound src="http://www.Your-Daily-Income.com/TVS/Audio/waves.mp3" loop="-1"> When I view the page source (http://screencast.com/t/w0p7Z2iLvMi0), and click on the hyperlinked "bgsound src" file I get this: (http://screencast.com/t/D49tu8NsKPH) Any help is appreciated. JMAC

被采纳的解决方案

BGSOUND is not compatible with other browsers like Firefox and only works in IE.

You need to use other ways like an embed or object element for older browsers or the audio tag for recent browsers.

If you use type="application/x-mplayer2" then the Windows Media Player will be used to play the file. Without a specific type attribute the QuickTime plugin will be used on Windows.

<object data="http://www.your-daily-income.com/TVS/Audio/waves.mp3" type="application/x-mplayer2" >
<audio src="http://www.your-daily-income.com/TVS/Audio/waves.mp3" controls>
定位到答案原位置 👍 1

所有回复 (2)

more options

This screencast link replaces "page source" link in my original question: http://screencast.com/t/IFGQb4vW2jwK

more options

选择的解决方案

BGSOUND is not compatible with other browsers like Firefox and only works in IE.

You need to use other ways like an embed or object element for older browsers or the audio tag for recent browsers.

If you use type="application/x-mplayer2" then the Windows Media Player will be used to play the file. Without a specific type attribute the QuickTime plugin will be used on Windows.

<object data="http://www.your-daily-income.com/TVS/Audio/waves.mp3" type="application/x-mplayer2" >
<audio src="http://www.your-daily-income.com/TVS/Audio/waves.mp3" controls>

由cor-el于修改