Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Flowplayer helper for rails 3

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

Something went wrong with that request. Please try again.