Hi,
Continuing on my project where I have close to 35 F4V(Flash Video) files to be played, I have a different issue to tackle. The videos show a series of steps. The video needs to pause when a step is being explained. The step explanations are done via audio.
I haven’t really understood much from the help documentation on cuepoints. What I really thought was to have actionscript embedded in the F4V that triggers that video to pause. But I am unable to get that done in the Cue points box. Though we can specify actionscript, where do u we write the AS code ?
This is the example I got :
import mx.video.*;
my_ta.visible = false;
mytest.playheadUpdateInterval = 5;
var listenerObject:Object = new Object();
listenerObject.playheadUpdate = function(eventObject:Object):Void {
if ((eventObject.playheadTime >= 5) && (eventObject.playheadTime < 5.05)) {
mytest.pause();
}
};
mytest.addEventListener("playheadUpdate", listenerObject);
listenerObject.paused = function(eventObject:Object):Void {
my_ta.text = "Paused; push Play to continue";
my_ta.visible = true;
};
mytest.addEventListener("paused", listenerObject);
Here is where I get confused. The videos I got easily have 30-35 steps, which means there are 35 different text blocks I need to show. Does this mean I need to have 35 if statements with the playheadTime changing ?, or does the pause function get triggered by inserting AS code in the F4v ?, this is where I am confused. The 35 steps are only for 1 video. Like that, I have around 10 videos…(each having 35 steps)
What do you suggest is the best way to go forward ?
More specifically, How do i use FLVcomponent to pause the video and at the same time display text on a text box. The playback controls should change accordingly.
As of now I am able to play any video selected from the list