Missing Safari-plugin for audio/MIDI

audiomidipluginssafari

I am using Mac OS X 10.9.1 (Mavericks) on a late 2012 27" iMac, running Safari 7.0.1 and I always install all new software updates.

But now I have a problem with midi-files that are embedded in websites (like wikipedia, take http://en.wikipedia.org/wiki/Tonality as an example). When I click on one of those midi-files I expect to hear music. But instead I get an error message telling me that there is no plugin for content of the type "audio/midi".

Where can I download the missing plugin?

I am not really shure, but I believe that playing midi files from a website was no problem in previous versions of OS X. Is this a bug in Mavericks?


EDIT 1 (Nov 2014):

This question is almost one year old and has more then 10,000 views, but is still left without an useful answer. And midi is still not supported by Safari 8 and Yosemite.

I do NOT want to download outdated software to use a widely used feature that was supported for many years and is neither a security risk nor any other harm to any computer, just because Apples developers are too reluctant and lame to continue supporting such a simple file format. And I do NOT want to download files and later open them with some other software.

What I want is this:

A plugin for Safari that I can install additionally to any other plugins (meaning: leave the newest Quicktime-plugin as it is and additionally install a new midi-plugin that is independent from Quicktime) to be able to hear music when I click onto a link to a midi-file in a html-document like this.


EDIT 2 (Dec 2014, when starting the bounty):

12,000+ views and still no useful answer.
To win the bounty please post a link to a site where you can download a plugin for Safari that is independent from Quicktime, that can be installed without replacing Quicktime to make it possible to play music that is encoded in Midi-files, like Quicktime did in previous times, just by clicking on a link to a midi-file.


EDIT 3 (May 2015):

20,000+ views and still no useful answer.

I can't believe, that there is really no plugin for Safari (or other browsers running on an iMac; OS X) that is able to play midi-music.

As with any other audio file that is linked in a website, I just want to click on it and do no other extras to hear the music that is stored in this file.

Hey, this worked already 20 years ago, in 1995, in the first days of Internet. This can't be so hard in 2015!

Best Answer

Support for playing .mid files in Safari was removed in 10.8. The QuickTime plugin from 10.7 or 10.6 still works in 10.9 though. See https://discussions.apple.com/message/23948316#23948316.

  1. Copy /Library/Internet Plug-Ins/QuickTime Plugin.plugin from a 10.7 or 10.6 installation to ~/Library/Internet Plug-Ins/ on your 10.9 or 10.8 installation.
  2. Run these commands:

    f=~/Library/Internet\ Plug-Ins/QuickTime\ Plugin.plugin/Contents/Info.plist
    defaults write "$f" CFBundleName 'QuickTime Plugin.plugin2'
    defaults write "$f" CFBundleIdentifier 'com.apple.QuickTime Plugin.plugin2'
    defaults write "$f" WebPluginMIMETypesFilename com.apple.quicktime.plugin2.preferences.plist
    
  3. Save this file as ~/Library/Preferences/com.apple.quicktime.plugin2.preferences.plist:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>WebPluginLocalizationName</key>
        <string>en_US</string>
        <key>WebPluginMIMETypeFilteringVersion</key>
        <integer>1</integer>
        <key>WebPluginMIMETypes</key>
        <dict>
         <key>audio/mid</key>
         <dict>
             <key>WebPluginExtensions</key>
             <array>
              <string>mid</string>
              <string>midi</string>
              <string>smf</string>
              <string>kar</string>
             </array>
             <key>WebPluginTypeDescription</key>
             <string>MIDI</string>
             <key>WebPluginTypeEnabled</key>
             <true/>
         </dict>
         <key>audio/midi</key>
         <dict>
             <key>WebPluginExtensions</key>
             <array>
              <string>mid</string>
              <string>midi</string>
              <string>smf</string>
              <string>kar</string>
             </array>
             <key>WebPluginTypeDescription</key>
             <string>MIDI</string>
             <key>WebPluginTypeEnabled</key>
             <true/>
         </dict>
        </dict>
    </dict>
    </plist>
    
  4. Quit and reopen Safari.

After that you should be able to play .mid files in Safari, but you have to allow websites to use the plugin manually:

You can also play .mid files with VLC or QuickTime Player 7.