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

搜索 | 用户支持

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

详细了解

my browser is moz firefox. Recently I lost sound of midi files on my website. What can I do?

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

more options

my website is www.pineywoodsindustries.com and I no longer get sound for my music. My website host is Bravenet and they tell me that I should contact you. Our theme on website is Texas and the music is very important to our theme. Please help me with getting the music back. I can get music sound when I go through Internet Explorer so why not Firefox?

my website is www.pineywoodsindustries.com and I no longer get sound for my music. My website host is Bravenet and they tell me that I should contact you. Our theme on website is Texas and the music is very important to our theme. Please help me with getting the music back. I can get music sound when I go through Internet Explorer so why not Firefox?

所有回复 (4)

more options

Hi

This sounds more like a web development questions than an issue with Firefox. I recommend that you consult the experts at https://stackoverflow.com/.

more options

I am very frustrated with this. I went to stackflow but cannot resolve my problem. All I need is the proper code for audio on my website while using Mozilla Firefox. Please help! I am not proficient in html.

more options

Have you been using an object or embed tag to play the media? Those usually will trigger a plugin.

The regular release of Firefox 52 only allows one plugin, which is Flash. The Extended Support Release (ESR) of Firefox 52 will still run Java, VLC, and other old plugins. ESR gets security updates but no feature changes for about a year at a time. While ESR was first developed to meet the needs of large organizations that wanted Firefox to change much more slowly, anyone can run it.

More information on this change and ESR: Why do Java, Silverlight, Adobe Acrobat and other plugins no longer work?

From the developer perspective, this means you either need to find a way to play the media files through the built-in media player, or through the Flash plugin, or push them to users as a download to open in an external player, or convert them to another format.

Built-in Media Player: Firefox's built-in player can handle a number of formats, but I do not see MIDI on the list: https://developer.mozilla.org/docs/Web/HTML/Supported_media_formats

There does seem to be at least one JavaScript library which could be relevant, but the sound of the demos is not as clear as I would expect. https://github.com/mudcube/MIDI.js

Flash-based Player: Flash doesn't normally support MIDI files, either, so you would need to find an SWF with the special sauce needed to play them.

Forced Download: Depending on the technologies used in your site, this can be done in a number of different ways.

Convert Format: A web search shows a number of different converters, some online, some downloadable. As with any audio- or video-related software, please be very cautious with any downloads that may include unwanted extras. https://duckduckgo.com/?q=convert+midi+to+ogg&t=ffsb

more options

Firefox 52 and later releases only support the Shockwave Flash plugin and disable all other plugins. If you need to use other plugins then you can use the Firefox 52 ESR release. Otherwise you can stay with the current Firefox release version.

Why-do-Java-Silverlight-Adobe-Acrobat-and-other-plugins-no longer work.


So you can no longer use and object or embed tag to play MIDI and other media files unless you use the Firefox 52 ESR version. There is no solution to play midi files with the HTML5 media player, so you would have to convert such media files to a supported media type.


<embed autostart="true" height="30" loop="true" src="sanantoniorose.mid" width="145"></embed>