Lots of good instrumental music out on the web in the form of midi files. You can incorporate background music as part of your web page. Here is the short code.
Does not work for me.
Do you have windows (any version) as this will not work unless you change the path if you are not using windows
<EMBED SRC="C:\Windows\Media\Onestop.mid" hidden=true autostart=true loop=1>
Change to a absolute url to the file or to the folder it is in.
I already changed that to the absolute URL I wanted.
When I use your suggestion, Firefox says to click to download plugin, but when I do it says not available. When I click manual install, it just re-installs Quicktime I already have installed, but Embed still doesn't work.
I also tried IE, but it wants to install a RealPlayer plugin, which it can't find either.
I've searched for a solution, but all discussion appears to be years old. Years ago, Embeds of MID files worked OK for me, but then they stopped working. If you have something that works today with either FireFox or Seamonkey, I would be eternally grateful.
If this method of playing MIDI files is outdated, then what is the current method? Is it possible to play MIDI files via HTML at all?
Add the MIDI.js script to your webpage:
Add a link to start playing:
<a href="#" onClick="MIDIjs.play('path/to/yoursong.midi');">Play My Song</a>
Take a look at http://www.midjs.net for details.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.