Search code examples
flashapache-flexactionscript-3actionscriptclosed-captions

ActionScript Cue Points for closed captioning in Video control?


I am using using Flash Builder to create an AS3 video player which needs to support Closed Captioning. However, I am not using the FLVPlayback component. Is there a way of doing something like addASCuePoint() to flash.media.Video;, or is my only option using Flash's Timer to do my own check?

I would imagine there must be lib out there that handles this but i can't find one anywhere.

Also, the solution must work with flash player 9.


Solution

  • You could create a simple cue manager class that holds your cue points and observes the video position.

    Observe the NetStream.time value every frame and find the current cue point.

    You could have it dispatch an event when it reaches a new cue point, and your view could change state.