Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Simple question: adding screenshot to flv player (http://www.greenguysboard.com/board/showthread.php?t=56686)

Ms Naughty 2010-03-08 07:09 PM

Simple question: adding screenshot to flv player
 
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:
HTML 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:
HTML Code:

'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 08: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 09: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 10:53 PM

Try reading through this.
http://www.republicofcode.com/tutori...oad_images_bc/

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

Ms Naughty 2010-03-10 01:45 AM

Thanks Sparky and Tickler. I'll have a read and a play around.


All times are GMT -4. The time now is 12:47 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc