为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

How do you stop mp3 files from playing in the browser?

  • 5 个回答
  • 4 人有此问题
  • 1 次查看
  • 最后回复者为 WillW

more options

This has been an eternal problem in Firefox that just won't go away. The problem is that when I click on a link to an mp3 file, instead of asking me what I want to do as I have specified in the Applications Preferences menu, Firefox just plays the mp3 in the browser.

I understand that I can right-click and select "save file as" but if I am downloading 50 mp3 files on a single webpage, that is obviously a significant hassle.

The previous solution that was given to other people that had this problem was to go to about:config and change the "media.windows-media-foundation.enabled" setting to "false". But this no longer works because that setting does not exist in Firefox 47.0. The only setting that comes close is one called "media.windows-media-foundation.allow-d3d11-dxva", but this setting is already set to "false" by default. Changing it to "true" does not fix the problem.

So did Mozilla completely remove the ability to download mp3 files by default for some reason? If so, I would be very curious to know what that reason was.

This has been an eternal problem in Firefox that just won't go away. The problem is that when I click on a link to an mp3 file, instead of asking me what I want to do as I have specified in the Applications Preferences menu, Firefox just plays the mp3 in the browser. I understand that I can right-click and select "save file as" but if I am downloading 50 mp3 files on a single webpage, that is obviously a significant hassle. The previous solution that was given to other people that had this problem was to go to about:config and change the "media.windows-media-foundation.enabled" setting to "false". But this no longer works because that setting does not exist in Firefox 47.0. The only setting that comes close is one called "media.windows-media-foundation.allow-d3d11-dxva", but this setting is already set to "false" by default. Changing it to "true" does not fix the problem. So did Mozilla completely remove the ability to download mp3 files by default for some reason? If so, I would be very curious to know what that reason was.

被采纳的解决方案

hi WillW, you can use the following to disable the built-in firefox player for media: enter about:config into the firefox address bar (confirm the info message in case it shows up) & search for the preference named media.play-stand-alone. double-click it and change its value to media.play-stand-alone. please also reset all other prefs starting with media. you have fiddled with back to their default value.

定位到答案原位置 👍 3

所有回复 (5)

more options

选择的解决方案

hi WillW, you can use the following to disable the built-in firefox player for media: enter about:config into the firefox address bar (confirm the info message in case it shows up) & search for the preference named media.play-stand-alone. double-click it and change its value to media.play-stand-alone. please also reset all other prefs starting with media. you have fiddled with back to their default value.

more options

The Windows Media Foundation preference has a new, shorter name:

media.wmf.enabled

That also will block decoding of other MPEG-encoded media such as MP4 videos. If you use YouTube, you can turn on support for Google's VP9 video as follows. For other sites, you might just be out of luck.

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste media. and pause while the list is filtered

(3) Double-click the media.mediasource.webm.enabled preference to switch its value from false to true

more options

Thank you for the fast reply. That fixed the problem.

There are a lot of media settings in my about:config that have been changed from their default value, however they were not changed by me. I am assuming they were changed by add-ons that I have installed. Is it still important that I change them back to their defaults?

Also, do you happen to know why it is necessary to go to about:config in order to allow mp3 files to download instead of playing in the browser? Is this a long-standing bug that can't be fixed?


Edit: @jscher2000 Since I was able to fix it with just changing the media.play-stand-alone toggle, I'm going to leave the others you mentioned as they are for now. But I appreciate the additional info - It may come in handy later if I have further issues with this.

由WillW于修改

more options

WillW said

Also, do you happen to know why it is necessary to go to about:config in order to allow mp3 files to download instead of playing in the browser?

Firefox treats some types of media files the same way it treats .txt and .html pages: it handles them internally instead of as downloads. Firefox only uses the Options/Applications list when a file is treated as a download.

(Note: the above is a slight oversimplification, because Firefox isn't looking at file extensions like .txt .html .mp3, it's looking at content type indications sent by the server with the file such as text/plain text/html audio/mpeg.)

more options

Thanks both very much for your help.