Page 1 of 1

Play Module using JW Flash Player REQUEST...

Posted: Wed Mar 05, 2008 12:45 am
by Gosha
Hi, I recently have been playing around with the Play Module to put videos on my CMSMS site.  I tried putting the JW Flash player on there, but I can't get it to load the flv files.  I can embed the mediaplayer.swf file, but just can't get it to properly point to the flv files, sense they are not named flv files.  Can anyone help me out with using the JW Flash Player in the Play module?  Like, what template should I use?  At this point, I don't really care about active x or anything.  Thanks to anyone that can help!

Re: Play Module using JW Flash Player REQUEST...

Posted: Mon Mar 10, 2008 4:38 am
by hexdj
I would like to see an answer for this as well...

Re: Play Module using JW Flash Player REQUEST...

Posted: Thu Apr 03, 2008 11:29 pm
by Ziggywigged
I'm having the same issue. I'm using the 'Play' modules and CMSMS 1.2.4

Here is what I have in my template for the JW flvplayer:

Code: Select all

<div id="player"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this movie.</div>

<__script__ type="text/javascript">
var so = new SWFObject('{$location}','player','{$width}','{$height}','7');
so.addParam('allowfullscreen','true');
so.addVariable('file','{$file}');
so.addVariable('autostart','false');
so.addVariable('overstretch','false');
so.addVariable('showvolume','true');
so.addVariable("backcolor","0x555555");
so.addVariable("frontcolor","0xffffff");
so.addVariable("lightcolor","0xd52b1e");
so.write('player');
</__script>
The player loads OK, but it's having trouble finding the flv file. Looking at the source code, here's the uri it returns for file:

Code: Select all

index.php%3Fmact%3DPlay%2Cm4%2Cplayfile%2C1%26m4recordid%3D1%26m4returnid%3D57%26page%3D57
Which doesn't seem right. Is it because the {$file} tag is only meant to work with the Neolao player?

Re: Play Module using JW Flash Player REQUEST...

Posted: Sun Apr 06, 2008 1:50 pm
by Ziggywigged
Can anyone help with this?

Re: Play Module using JW Flash Player REQUEST...

Posted: Thu Apr 10, 2008 7:38 pm
by dam
Hello,
The {file} tag is supposed to work with any Flash player. I don't have many free teim now, but I will try to find what's happening soon

Re: Play Module using JW Flash Player REQUEST...

Posted: Fri Apr 11, 2008 2:26 pm
by Ziggywigged
Ok, guys I finally got it to work for me. Here's what I've done:

Code: Select all

<div id="player"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this movie.</div>

<__script__ type="text/javascript">
var so = new SWFObject('{$location}','player','{$width}','{$height}','7');
so.addParam('allowfullscreen','true');
so.addVariable('file','{$file}{foreach from=$player_params item=v}{$v}{/foreach}');
so.addVariable('showvolume','true');
so.addVariable("backcolor","0x555555");
so.addVariable("frontcolor","0xffffff");
so.addVariable("lightcolor","0xd52b1e");
so.write('player');
</__script>
Note: You'll have to specify the 'file' param for the FLVplayer which would be the same as 'Location' when adding a video. It's not the best fix but it should work.

Only problem is you'll lose the ability to apply specific params for each video. Not an issue for me since i'm using the same params for all videos. If you do apply params it will disable the video from playing.

Hope that helps some folks.