Play Module using JW Flash Player REQUEST...

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Gosha
Forum Members
Forum Members
Posts: 26
Joined: Sun Oct 28, 2007 3:57 am

Play Module using JW Flash Player REQUEST...

Post 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!
Last edited by Gosha on Wed Mar 05, 2008 9:30 am, edited 1 time in total.
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

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

Post by hexdj »

I would like to see an answer for this as well...
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am

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

Post 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?
Last edited by Ziggywigged on Fri Apr 04, 2008 11:44 am, edited 1 time in total.
Take a penny, leave a penny.
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am

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

Post by Ziggywigged »

Can anyone help with this?
Take a penny, leave a penny.
User avatar
dam
Forum Members
Forum Members
Posts: 136
Joined: Sat Jan 14, 2006 6:07 pm

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

Post 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
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am

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

Post 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.
Last edited by Ziggywigged on Fri Apr 11, 2008 3:02 pm, edited 1 time in total.
Take a penny, leave a penny.
Post Reply

Return to “Modules/Add-Ons”