how can I play a midi file in my html/php page
Right now I surf the net and got lots of simple embed code like the one I given below
<EMBED SRC="C:\Windows\Media\Onestop.mid" hidden=true autostart=true loop=1>
But my firefox says to install plugin – Quicktime player
I don’t think this is the way or how to bypass this above said issue, may be if you can suggest another method to do this if any.
As far as I know, there is no cross-browser way to do this: Flash, the most common option when embedding audio on a web page, doesn’t play Midi files.
The only way is indeed the
embedmethod, and whether that works will depend on how the user’s browser is set up. A plug-in (like Quicktime) will have to be installed that can handle the file. If the “install plugin” dialog appears on a computer, it won’t work there.I think the only sane way is to convert those Midis to MP3 files.