Flowplayer helper for rails 3
Go to file
Scott Davis 99f2bbdcfe updated readme 2011-02-01 19:01:20 -05:00
assets added jquery and prototype support 2011-02-01 17:58:56 -05:00
lib added jquery and prototype support 2011-02-01 17:58:56 -05:00
spec added jquery and prototype support 2011-02-01 17:58:56 -05: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 updated readme 2011-02-01 18:53:24 -05:00
README.mdown updated readme 2011-02-01 19:01:20 -05:00
Rakefile inital 2011-01-31 16:06:59 -05:00
flowplayer.gemspec updated readme 2011-02-01 18:53:24 -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 you 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