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"));
   snd0.play();
        } else if (eventObject.info.name == "ASpt2") {
            var snd:Sound = new Sound(new URLRequest("transfrm.mp3"));
   snd.play();
  }
}

 
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.
AWK


________________________________

	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:
http://www.pbs.org/wgbh/evolution/educators/teachstuds/tvideos.html
<http://www.pbs.org/wgbh/evolution/educators/teachstuds/tvideos.html>  

	 

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

	 

	Thanks for your help

	Jackir
Received on Wednesday, 31 October 2007 02:21:43 GMT

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