PDA

View Full Version : Preview a flv video


compsci
09-05-2007, 07:30 PM
Hello all,

I have a flv video and i am using my own flash player to play it on my blog. What i want to do is provide a preview of it in the form of a frame (like a snapshot). I don't want the flv to start playing i just want to show this one frame as a still in the flash player. So i want to show maybe the 5th frame or something, how can i do this? Please note: i am newbie in actionscript. I hope its one function that takes in a frame number as its parameter. :rolleyes:

Thanks all, I appreciate any help

wortale
09-05-2007, 07:59 PM
you could use the seekToNavCuePoint() method of the FLVPlayback class to get to the point you want, then listen for that cue point, and when the listener fires, stop the video.

compsci
09-05-2007, 09:28 PM
you could use the seekToNavCuePoint() method of the FLVPlayback class to get to the point you want, then listen for that cue point, and when the listener fires, stop the video.

Does this mean the flv video has been played a little bit and then stopped? Since i cant afford to have the video being played when a page loads for bandwidth reasons. I want the flv to play when its clicked by the user.

atomic
09-05-2007, 09:31 PM
http://www.flashcomguru.com/tutorials/progressive_preview.cfm

compsci
09-05-2007, 10:28 PM
http://www.flashcomguru.com/tutorials/progressive_preview.cfm

Thank you, very usefull! But alas, it didn't explain how to show a single frame as an image??