is it possible to get flv movies to freeze on the last frame

Ive an flav ovie which I like to freeze on the frame as a permanent still, is this possible?
sousflaiAsked:
Who is Participating?
 
biyikCommented:
So... for pausing at frame 359;
If your video is NTSC you need to write pauseHere.time = 11.96
If it's PAL you need to use 14.36 for the .time parameter.
0
 
biyikCommented:
You can add a cue point to the time you want to pause than call a function:
var yourlistener:Object = new Object();
yourlistener.cuePoint = function(eventObject:Object):Void  {    
    if (eventObject.info.name == "yourCuePoint") {
        yourFunction() //you can pause or pause and load a still image here...
    };
0
 
sousflaiAuthor Commented:
that's brilliant, youll have to forgive my lack of skills, wher youve put you can pause or a load an image jhere, what command would I use to talk to the external flv to make it stop, lets say for example on the 359th frame?
0
 
biyikCommented:
You can add a cue point from the Parameters of FLVPlayer or directly from code. If you want it from code, here is a working example: I wrote it fast but It should work:
import fl.video.*;
import fl.video.MetadataEvent;
// create your cuepoint object
var pauseHere:Object = new Object(); 
// where do you want to place it? 359/video fps = yourTime in seconds
pauseHere.time = 1.5 ; 
pauseHere.name = "point1";
pauseHere.type = "actionscript";
// add your cuepoint object to flv player component
yourFLVInstance.addASCuePoint(pauseHere);  
// add your listener
yourFLVInstance.addEventListener(MetadataEvent.CUE_POINT, cueListener);
function cueListener(eventObject:MetadataEvent):void {
 trace("hello cue point");
 yourFLVInstance.pause();
}

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.