WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • General Community »
  • Off-Topic »
  • Flash: playing flv file with swf
  • Print
Pages: [1]   Go Down

Author Topic: Flash: playing flv file with swf  (Read 7475 times)

Offline mviens

  • Posts: 65
Flash: playing flv file with swf
« on: May 23, 2008, 02:36:25 AM »
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.
Logged

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8544
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: Flash: playing flv file with swf
« Reply #1 on: May 23, 2008, 07:35:29 AM »
Hello,

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

Matthias
Logged

Offline mviens

  • Posts: 65
Re: Flash: playing flv file with swf
« Reply #2 on: May 23, 2008, 10:18:58 PM »
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
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • General Community »
  • Off-Topic »
  • Flash: playing flv file with swf
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2