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

RE: Flash player & audio-description

From: Jackir ASSAN ALY <jassanaly@ipedis.com>
Date: Thu, 8 Nov 2007 01:17:38 +0100
To: "'Andrew Kirkpatrick'" <akirkpat@adobe.com>
Cc: <w3c-wai-ig@w3.org>
Message-Id: <20071108001726.C8E7C2560E@relay-dv.club-internet.fr>
Hi Andrew,


How are you? hope doing well.


I have one more question about the audio-description…


Is it possible to automatically “stop” & “re-start” the video while the
audio-description is playing?


If yes, could you help me for the corresponding code to use?

Moreover, can that interfere with the synchronized captions?


Thanks for your help,




De : Andrew Kirkpatrick [mailto:akirkpat@adobe.com] 
Envoyé : mercredi 31 octobre 2007 03:21
À : jassanaly@ipedis.com
Cc : w3c-wai-ig@w3.org
Objet : RE: Flash player & audio-description


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


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 Thursday, 8 November 2007 00:17:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:36:31 UTC