Re: Playing Flash flv files using FlowPlayer

Ryan Bigg
Thu, 27 Dec 2007 01:42:45 -0000

That would''ve been because you were making a request of
"FlowPlayer.swf", so
Rails assumes you want it in the same controller, and therefore it was
trying to go to contents/FlowPlayer, which would''ve been the show
action for
contents_controller and would''ve been specifying the ID.

You just have to be careful when specifying paths :)

On Dec 27, 2007 11:13 AM, Big Twinz
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:

>
> Figured it out. In case anyone else has this problem:
> Following worked for me in the partial (Note video is hardcoded right
> now ):
>
>
> <script type="text/javascript"
src="/player/html/swfobject.js">
>
>  This will be replaced by the player.
>
>
> //
> var fo = new SWFObject("/player/FlowPlayer.swf",
"FlowPlayer",
> "468", "350", "7", "#ffffff",
true);
> // need this next line for local testing, it''s optional if your
swf is
> on the same domain as your html page
> fo.addParam("allowScriptAccess", "always");
> fo.addParam("loop", false);
> fo.addVariable("config", "{ playList: [ {overlayId:
''play'' }, { url:
> ''/video/sample.flv'' } ], initialScale:
''scale'' }");
> fo.write("flowplayerholder");
> //
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>


--
Ryan Bigg
http://www.frozenplague.net
Feel free to add me to MSN and/or GTalk as this email.