10

I would like to play midi files in Firefox.

For example, I'd like to click on the files on this Wikipedia page and have them play in the browser and not have to download them and use a separate player.

I did get a plugin for VLC to play them, but even when it is set to handle midi files in Firefox's preferences either Totem still opens (and does nothing) or VLC opens it in a separate window (depending on the setting).

Is there a cleaner way of playing them embedded in the browser?

4
  • That's strange as mine plays in the browser, what version of firefox are you using? Nov 18, 2017 at 10:46
  • @George You have probably found the wav files on this page, midi files are a little further down...
    – andrew.46
    Nov 18, 2017 at 23:05
  • Oh I see just experienced it now. Nov 19, 2017 at 6:23
  • 1
    Firefox cannot play midi files directly, have it open them in a player that supports midi like audacious. How to set up audacious is here askubuntu.com/questions/801069/audacious-how-to-play-midi-files
    – doug
    Nov 23, 2017 at 0:26

3 Answers 3

6
+50

I know this isn't the answer you want, but modern browsers don't play midi files. To the best of my knowledge Mozilla dropped support for NPAPI plugins around the first quarter of 2017. Wikipedia makes this clear.

Music files may occasionally use the MIDI format (.MID or .MIDI extension). MIDI is often playable without additional software, and some PCs have a MIDI-enabled player and sound card. However, for macOS (since 10.9 Mavericks), a MIDI file is not playable by both Safari and QuickTime pre-installed in the system and an alternative standalone player has to be used. The situation is similar with modern Firefox and Google Chrome browsers which do not support MIDI by default but require additional software (plugins, extensions, codecs) to play such files.

One solution is to download and play them in totem (a.k.a Videos) Totem requires a plugin for this that it doesn't automatically find. The solution to THAT is to be found in the fluidsynth package.

Another option mentioned by doug in a comment above can be found here: Audacious: How to play midi files?

S number of popular MIDI files can be found here.

Sources:

https://support.mozilla.org/en-US/questions/1149132

https://en.wikipedia.org/wiki/Wikipedia:Media_help

2
  • thanks. seems like the best we can get here is to write a little web extension talking to Audacious
    – Anona112
    Nov 24, 2017 at 22:43
  • @Anona112 If your up to that challenge you might find the last link in my answer here useful
    – Elder Geek
    Nov 24, 2017 at 22:58
1

If you have Rhythmbox music player choose it instead of VLC. Rhythmbox can play MIDI files if fluid-soundfont-gm is installed. fluid-soundfont-gm can be installed from the default Ubuntu repositories in all currently supported versions of Ubuntu with the following command.

sudo apt install fluid-soundfont-gm
1

This Firefox addon is fine answer to the problem in september 2019. after adding on and click midi link the midi player open right up.

https://addons.mozilla.org/en-US/firefox/addon/midi-player/

midi player add on for firefox

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .