gem 'flowplayer'
in your gem filerails g flowplayer
orrails g flowplayer commercial
- add
javascript_include_tag 'flowplayer.min.js'
to your application layout - 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();'
http://flowplayer.org/documentation/api/index.html
More documentation