Flash: playing flv file with swf

mviens

Hi Matthias,

Thanks for the reply.

I found the snytax for the code block as you directed but just couldn't get the client's code to work in it. I finally installed Video Gallery to test and it worked fine so I copied the javascript file: flash.js (it was called ufo.js but I renamed if for simplicity of reference) and the flash player: flvplayer.swf to my /include folder and simplified the code for single instances.

Now all I have to do is copy the following snipped into a code block and change FILENAME to the respective flv file that I upload to my /media/video directory. It's a bit of manual work for the client but it works!

$a = '12';
$mixed_output = <<< EOT
<script type='text/javascript' src='http://url.com/include/flash.js'></script>
<span id='player1'><a href='http://www.macromedia.com/go/getflashplayer'>Get the Flash Player</a> to see this player.</a></span><script type='text/javascript'>var FO = { movie:'/include/flvplayer.swf',width:'300',height:'250',majorversion:'7',build:'0',bgcolor:'#FFFFFF',flashvars:'file=/media/video/FILENAME.flv&showdigits=true&image=/media/video/FILENAME.flv.jpg&showicons=true&volume=100' };UFO.create( FO, 'player1');</script>
EOT;
echo $mixed_output;


I hope this helps someone else out - I certainly get great support and information in the forum.

Michael

ruebenwurzel

Hello,

add the code to a code section. Read on our help page how to use the right syntax.

Matthias

mviens

Hello,

I am trying to figure out how to recreate what my client is using on their current site in a Baker site.

They have an assortment of flv files in a folder. They have a "videoplayer.swf" which has a particular look/feel and controls. This swf is placed on a page where required and linked to a particular flv file.

This is what their code looks like:

<SCRIPT type=text/javascript>AC_FL_RunContent('codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width','330','height','290','id','video','align','middle','src','/video/videoplayer.swf?video=PressConference.flv','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','/video/videoplayer.swf?video=PressConference.flv','bgcolor','#FFFFFF','allowScriptAccess','sameDomain','menu','false');
</SCRIPT>

How do I do this in Baker? I uploaded the flv and swf files to /media/video/ folder. I can use the "Flash" object in FckEditor but it doesn't recognize flv files. I tried to reference the swf but it needs to reference the flv files.

I found a video gallery plugin which works and plays the flv files but I don't want a gallery, I want to be able to place flash files in the WYSIWYG content.

Thank you.