Flowplayer helper for rails 3
Go to file
Scott Davis 5f0220bb12 added tests for rails helper 2011-04-19 17:52:44 -04:00
assets added jquery and prototype support 2011-02-01 17:58:56 -05:00
lib Add third parameter to flowplayer_for to match example and Player#initialize. 2011-04-19 16:02:05 -04:00
spec added tests for rails helper 2011-04-19 17:52:44 -04:00
.DS_Store specs passing 2011-01-31 17:22:47 -05:00
.gitignore updated gem spec 2011-02-01 18:37:52 -05:00
Gemfile inital 2011-01-31 16:06:59 -05:00
Gemfile.lock the second arg can take wmode now 2011-02-17 23:18:52 -05:00
LICENSE.txt added mit license 2011-02-01 19:04:47 -05:00
README.mdown updated readme 2011-02-01 19:01:37 -05:00
Rakefile inital 2011-01-31 16:06:59 -05:00
flowplayer.gemspec the second arg can take wmode now 2011-02-17 23:18:52 -05:00
init.rb inital x2 2011-02-01 16:03:28 -05:00

README.mdown

Flowplayer Helper for Rails 3 applications

  1. gem 'flowplayer' in your gem file
  2. rails g flowplayer or rails g flowplayer commercial
  3. add javascript_include_tag 'flowplayer.min.js' to your application layout
  4. read below

##Usage

<a id='video' style='display:block;width:512px;height312px;'>

For JQuery = flowplayer_for :video, '/flowplayer.swf', 'jquery' do |player| - player.playlist [{:url => "video_still.jpg" }, {:url => "video_512x288.flv", :autoPlay => false, :autoBuffering => true }] - player.onLoad do - 'this.unmute();' For Prototype
= flowplayer_for :video, '/flowplayer.swf', 'prototype' do |player| - player.playlist [{:url => "video_still.jpg" }, {:url => "video_512x288.flv", :autoPlay => false, :autoBuffering => true }] - player.onLoad do - 'this.unmute();'

Configs are the same ones here

http://flowplayer.org/documentation/api/index.html

TODO

More documentation