Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Flowplayer helper for rails 3
Ruby JavaScript
branch: master

Merge pull request #10 from col/master

Homepage link on Rubygems was wrong.
latest commit 8bb5fcdc1d
@scottdavis authored
Failed to load latest commit information.
app/assets Move vendor into app
lib Fix install generator
spec Add test
.gitignore Ignore .DS_Store
.rspec added travis.ci
.travis.yml only test 1.9.3
FLOWPLAYER_LICENSE.txt
Gemfile ensure install generator references right rails constant and get test…
Gemfile.lock Update flowplayer
LICENSE.txt added mit license
README.mdown
README.txt updated for asset pipeline
Rakefile inital
flowplayer.gemspec Fixed the homepage link in the gemspec file.
init.rb inital x2

README.mdown

Build Status

Flowplayer Helper for Rails 3 applications

  1. gem 'flowplayer' in your gem file
  2. copy assets
    • With asset pipeline rails g flowplayer or rails g flowplayer commercial
    • Without asset pipeline rails g flowplayer --without-asset-pipeline or rails g flowplayer commercial --without-asset-pipeline
  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

Something went wrong with that request. Please try again.