Flash swf Embed tag z-index wmode JWPlayer

<embed
id="sampPlayer"
height="268"
width="280"
flashvars="file=1074.xml&image=http://somewhere.com&width=280&height=268&displayheight=200&displaywidth=280&backcolor=0xFFFFF0&frontcolor=0xA7C860&lightcolor=0x718f2d&screencolor=0x333333&searchbar=false&javascriptid=sampPlayer&enablejs=true&shuffle=false&thumbsinplaylist=false"
allowscriptaccess="always"
allowfullscreen="false"
quality="high"
name="sampPlayer"
style=""
wmode = "opaque"
src="mediaplayer.swf"
type="application/x-shockwave-flash"/>

Posted on 8 Oct 2009, 16:33 - Category: Flash
Comments - Edit - Delete


Flash JWPlayer video still first frame generation script

<?php

// generate a preview image from an FLV file on-the-fly, or to save
// Will - 06-16-07
// call with: ffmpeg_image.php?file=video.flv&time=00:00:05&browser=true
// no time defaults to "00:00:00" (first frame), no browser defaults to "true"

if (isset($_GET['file']))
{
$videofile = $_GET['file'];
$image = substr($videofile, 0, strlen($videofile) - 4);
}

// debug (" File: ", $file);
// debug (" Image: ", $image);

if (isset($_GET['time']))
{
$time = $_GET['time'];
// check time format here
if (!preg_match('/\d\d:\d\d:\d\d/', $time))
{
$time = "00:00:00";
}
}

// debug (" Time: ", $time);

$browser = "true";
if (isset($_GET['browser']))
{
$browser = $_GET['browser'];
}

// debug ("Browser: ", $browser);

if ($browser == "true")
{
header('Content-Type: image/png');
passthru("\"C:/path-to-ffmpeg/ffmpeg.exe\" -vcodec png -i " . $videofile . " -ss " . $time . " -vframes 1 -f image2 -");
// header('Content-Type: image/jpeg');
// passthru("\"C:/path-to-ffmpeg/ffmpeg.exe\" -vcodec mjpeg -i " . $videofile . " -ss " . $time . " -vframes 1 -f image2 -");
}
else
{
passthru("\"C:/path-to-ffmpeg/ffmpeg.exe\" -vcodec png -i " . $videofile . " -ss " . $time . " -vframes 1 -f image2 " . $image . "%d.png");
// passthru("\"C:/path-to-ffmpeg/ffmpeg.exe\" -vcodec mjpeg -i " . $videofile . " -ss " . $time . " -vframes 1 -f image2 " . $image . "%d.jpg");
}


function debug($text1, $text2)
{
print "<pre>\n";
print $text1 . $text2 . "\n";
print "</pre>\n";
}

?>

implement with:
(s1.addVariable("image","ffmpeg_image.php?file=video.flv&time=00:00:05&browser=true);

source:
http://www.longtailvideo.com/support/forum/Setup-Problems/6366/Preview-Images#msg123970

Posted on 5 Oct 2009, 13:28 - Category: Flash
Comments - Edit - Delete


Actionscript only library flash

FLA ONLY has entry in Properties Class: field
example:
com.libname.asfile (no suffix)

In folder where FLA saved is com folder
in that is folder whatever class name,
in this example it would be libname,
in that is .as file

Posted on 28 Sep 2009, 11:09 - Category: Flash
Comments - Edit - Delete


Pages: [1]
Loading