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

RE: Flash player & audio-description

From: Andrew Kirkpatrick <akirkpat@adobe.com>
Date: Tue, 30 Oct 2007 19:21:04 -0700
Message-ID: <53744A0A1D995C459E975F971E17F56402B96CCA@namail4.corp.adobe.com>
To: <jassanaly@ipedis.com>
Cc: <w3c-wai-ig@w3.org>
Sure, it is pretty simple.  
Add this code to your FLA file (it assumes the instance name for your
video playback component is my_FLVPlybk):
import fl.video.*;
my_FLVPlybk.addASCuePoint(8.35, "ASpt1");  //add AS cue point
my_FLVPlybk.addASCuePoint(23.23, "ASpt2");  //add 2nd Aspt
my_FLVPlybk.addEventListener(MetadataEvent.CUE_POINT, cp_listener);
function cp_listener(eventObject:MetadataEvent):void {
        if (eventObject.info.name == "ASpt1") {
            var snd0:Sound = new Sound(new URLRequest("sphere.mp3"));
        } else if (eventObject.info.name == "ASpt2") {
            var snd:Sound = new Sound(new URLRequest("transfrm.mp3"));

This will play two audio descriptions, one at 8.35 seconds and another
at 23.23 seconds.  You would, of course, modify the times to match when
your audio descriptions need to be played and modify the AD file names.
You'd likely have more files for description too, but this example
should get you started.
You would also want to provide some UI to enable the AD user to turn the
descriptions on and off.  You could make the descriptions on by default
when a screen reader is detected as an added feature...
Hope this helps.


	From: Jackir ASSAN ALY [mailto:jassanaly@ipedis.com] 
	Sent: Tuesday, October 30, 2007 6:15 PM
	To: Andrew Kirkpatrick
	Cc: w3c-wai-ig@w3.org
	Subject: Flash player & audio-description

	Hi Andrew,


	I asked you few days ago how to add captions to videos (in .FLV
format): we succeeded thanks to you.


	Other question: is it possible to add synchronised
audio-description to videos (in .FLV format)? 


	For Real Player or QuickTime videos, we have examples on:


	But for Flash videos, I do not have any examples.


	Thanks for your help

Received on Wednesday, 31 October 2007 02:21:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:36 UTC