0.0
No commit activity in last 3 years
No release in over 3 years
Flowplayer helper for Rails 4
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.0.0
>= 0
>= 0
~> 2.4.0

Runtime

>= 0
 Project Readme

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