accessible sound on event using object?

Is there a default way of playing a sound on event, using object, that will validate?

The following snippet* would probably validate, however there remains a serious flaw.

Player.controls.play() relies on a valid classid, and once again one is chasing supposedly installed plugins. (this only works for windows media player 7 on a pc)

whereas mozilla 2002092708, icab 2.8 for mac and ie5.2 for mac ONLY play the autostart sound (not surprisingly.)

thanks

jonathan






*http://www.peepo.com/w3/ok.html

<html>
<body>

<OBJECT ID="Player"
  CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
    height="0" width="0">
  <PARAM name="URL" value="games.wav">
  <PARAM name="autoStart" value="False">
</OBJECT>

<object id="mynewSound" data="games.wav" type="audio/wav" width="" height="" > //mac ie + Moz
<param name="src" value="games.wav" /> //pc ie but does not work for pc moz
<param name="autostart" value="true">
</object>

<a onmouseover="javascript:Player.controls.play();">
<img src="tiger.png" alt="tiger" title="tiger" /></a>

</body>
</html>

Received on Thursday, 3 October 2002 18:27:19 UTC