[thelist] autoplay midi in xhtml

bruce at brucelawson.co.uk bruce at brucelawson.co.uk
Thu Oct 2 12:25:11 CDT 2003


It's embarrassing and I'm ashamed, but I need to autoplay a midi file when
an xhtml page loads (with no 'console' or control panel.)
Cos it's XHTML, I can't use <embed> but need the <object> tag. I googled
around and found these two sample bits of code:

<object classid= "CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
type="audio/x-midi" width="145" height="120">
<param name="src" value="../files/softmelody.mid" />
</object>

and this one (for real audio)

<object classid="clsid: CFCDAA03 -8BE4-11cf-B84B-0020AFBBCCFA" height="100"
width="100" name="It's my Music!">
<param name= " autostart" value- "true"> <param name="'src"
value="myMusic.rm">
<embed height="100" name="It's my Music!" src="myMusic.rm"
type="audio/x-pn-realaudio-plugin" width="100" autostart="true" controls="
controlpanel ">
</object>

my questions: how do I specify autoplay for midi (same as the real audio
code?) and number of times to loop? and how the goodness to I find out which
seemingly arbitrary list of letters and numbers goes to make up the clsid?

bruce



More information about the thelist mailing list