Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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

Posted on 2009-04-22
Medium Priority
Last Modified: 2012-05-06
Ive an flav ovie which I like to freeze on the frame as a permanent still, is this possible?
Question by:sousflai
  • 3

Expert Comment

ID: 24204853
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...

Author Comment

ID: 24212974
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?

Expert Comment

ID: 24213136
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
// add your listener
yourFLVInstance.addEventListener(MetadataEvent.CUE_POINT, cueListener);
function cueListener(eventObject:MetadataEvent):void {
 trace("hello cue point");

Open in new window


Accepted Solution

biyik earned 2000 total points
ID: 24213156
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.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question