為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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>