W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > October to December 2002

accessible sound on event using object?

From: jonathan chetwynd <j.chetwynd@btinternet.com>
Date: Thu, 3 Oct 2002 23:25:58 +0100
Message-ID: <003f01c26b2b$da6038a0$0201a8c0@RJCHETWYND>
To: "WAI List \(E-mail\)" <w3c-wai-ig@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:07 GMT