i have custom flvPlayBack player, i want to do like add Custom CuePoints using ActionScript and making one button Event , On click of that button , Flv should seek to that CuePoints added using ActionScript .
I am using below code to do that.
var rtn_obj:Object; //create cue point object
my_FLVPlybk.source = "sj_clip.flv";
my_FLVPlybk.addASCuePoint(0, "abs",CuePointType.ACTIONSCRIPT);
my_FLVPlybk.addASCuePoint(4, "abs",CuePointType.ACTIONSCRIPT);
my_FLVPlybk.addASCuePoint(8, "abs",CuePointType.ACTIONSCRIPT);
my_FLVPlybk.addASCuePoint(12, "abs",CuePointType.ACTIONSCRIPT);
my_FLVPlybk.addASCuePoint(16, "abs",CuePointType.ACTIONSCRIPT);
my_FLVPlybk.addASCuePoint(20, "abs",CuePointType.ACTIONSCRIPT);
my_FLVPlybk.addASCuePoint(24, "abs",CuePointType.ACTIONSCRIPT);
my_FLVPlybk.addASCuePoint(28, "abs",CuePointType.ACTIONSCRIPT);
my_FLVPlybk.addASCuePoint(31, "abs",CuePointType.ACTIONSCRIPT);
my_FLVPlybk.setFLVCuePointEnabled(true,"abs");
fwbtn1.addEventListener(MouseEvent.CLICK,Forward)
function Forward(e:MouseEvent):void
{
if(rtn_obj != null)
{
traceit(rtn_obj)
rtn_obj = my_FLVPlybk.findNextCuePointWithName(rtn_obj);
if(rtn_obj != null)
{
traceit(rtn_obj)
my_FLVPlybk.seekToNavCuePoint(rtn_obj.time);
}
}
}
my_FLVPlybk.addEventListener(fl.video.VideoEvent.READY, ready_listener);
function ready_listener(eventObject:fl.video.VideoEvent):void {
rtn_obj = my_FLVPlybk.findCuePoint("abs", CuePointType.ACTIONSCRIPT);
}
function traceit(cuePoint:Object):void {
trace("Cue point name is: " + cuePoint.name);
trace("Cue point time is: " + cuePoint.time);
trace("Cue point type is: " + cuePoint.type);
}
I thought ,this code should work properly.. but when i run this code , it give me next cuePoint which i find using findNextCuePointWithName() method but it does not seek to that point , which i thought seekToNavCuePoint() method should do.
anybody have any idea , how to make it work??
Thanks
i Hope my i have explained my requirement to clear to understand. i really need this in urgent. please help me.