PDA

View Full Version : Simple question: adding screenshot to flv player


Ms Naughty
2010-03-08, 08:09 PM
Hi there
I've been messing around with this and can't get it to work.

I'm used to embedding flv files using the embed/object code. No probs there. But now I'm working with this code:
if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
// embed the flash movie
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0',
'width', '330',
'height', '290',
'src', 'couples2',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'false',
'loop', 'true',

etc
etc
So the parameters are listed differently.

What I want to do is make the player display a sample screenshot because at the moment the screens are black.

At the bottom I tried adding:
'FlashVars', 'previewImageURL=http://www.previewimage.com/previewimage.jpg'
but it didn't work.

Can anyone tell me how to add a preview image to AC javascript code for flash movies?

Ms Naughty
2010-03-09, 09:43 PM
Bueller? Bueller? Bueller?

I realise I've asked this on a fairly dead bit of the board. Just thought it was a quickie question that someone could take 2 seconds to help with.

cd34
2010-03-09, 10:57 PM
Just a guess as I've not seen that implementation:

'previewImageURL','http://www.previewimage.com/previewimage.jpg',

after one of the variable pairs in the request?

I don't actually find previewImageURL as a typical action content. You might try 'image'. I believe 'logo' is for a webbug in the corner of the video.

tickler
2010-03-09, 11:53 PM
Try reading through this.
http://www.republicofcode.com/tutorials/flash/load_images_bc/

There is also a link to another tutorial near the end.

Ms Naughty
2010-03-10, 02:45 AM
Thanks Sparky and Tickler. I'll have a read and a play around.