CSS2: howto disable audio?
Bert,
I've already raised this issue twice***, but not received a
response.
Please could you consider how to disable audio with CSS2?
and let me know asap?
copied to cdf as possibly relevant.
cheers
~:"
Jonathan Chetwynd
***
http://lists.w3.org/Archives/Public/www-style/200
7Apr/0008.html *
http://lists.w3.org/Archives/Public/www-style/200
7Jul/0044.html **
**CSS & audio
How can the user disable audio?
http://www.peepo.co.uk
demonstrates one way that CSS2 can be used to
enable audio on event.
the user may for instance have a screen reader and it would
be
confusing to hear both.
unplugging the speaker or turning audio off are not helpful
solutions.
apologies if I already raised this issue, I'm known to have
a
terrible memory.
----
*CSS2: howto disable audio?
http://www.peepo.co.uk
uses css to provide audio on event.
It would be convenient for some users if a button to disable
audio
were provided.
How might this be done, without using script?
please find attached a reduced testcase, and brief
instructions.
cheers
Jonathan Chetwynd
Accessibility Consultant on Learning Disabilities and the
Internet
use the relevant nightly build from Camino, Firefox or
Opera:
(if necessary place in a temporary directory)
camino
OS X: http://www.caminobrowser.org/download/releases/nightly/
a>
ff
OS X: http://ftp.mozilla.org/pub/mozilla.org/firefox/nig
htly/latest-
trunk/firefox-3.0a3pre.en-US.mac.dmg
Win: http://ftp.mozilla.org/pub/mozilla.org/firefox/nig
htly/latest-
trunk/firefox-3.0a3pre.en-US.win32.installer.exe
opera
OS X: http://s
napshot.opera.com/mac/o920w_3659.dmg
Win: htt
p://snapshot.opera.com/windows/o920w_8762m.exe
and install an audio plugin such as quicktime:
http://www.a
pple.com/quicktime/download/
for mouse users: place the pointer over an icon, a speaker
icon
appears, move the pointer over the speaker to play the
sound.
unfortunately, for keyboard users, the audio plays
automatically: use
tab or Q/A to navigate.
Is there any way I can improve on this, given that SVG is
not read by
screenreaders?
to change spoken language and text, use Camino, and change
your
operating system language, then reboot
to change text only, use Opera in XP: tools,preferences,
general,
language...
--
<?xml version="1.0" encoding="utf-8"
standalone="no"?>
<svg xmlns="http://www.w3.org/20
00/svg"
xmlns link=
"http://www.w3.org/
1999/xlink"
width="100%" height="100%"
>
<style type="text/css"
id="css"><![CDATA[
.audio {display: none}
a:hover .audio {display: block}
a:focus .audio {display: block}
]]></style>
<a xlink:href="http://www
.peepo.co.uk/index.svg">
<rect x="5" y="5"
width="255" height="25"
style="fill:#aaa"/>
<text x="10" y="25" >audio on
:hover or :focus</text>
<foreignObject class="audio"
xlink:href="http://www.peepo.co.uk/
sound/
en/splat.mp3">
<html xmlns="http://www.w3.org/
1999/xhtml" >
<object data="http:
//www.peepo.co.uk/sound/en/splat.mp3" />
</html>
</foreignObject>
</a>
</svg>
---
|