module Flowplayer::Rails::Helper

Public Instance Methods

flowplayer_for(id, swf, lib='jquery', &block) click to toggle source

flowplayer_for :hubble do |f|

f.option 'foo'
f.onLoad do
  'this.unmute();'
end
f.onStart do |clip|
  'alert(clip.metaData.width);'
end
# File lib/flowplayer/rails/helper.rb, line 16
def flowplayer_for(id, swf, lib='jquery', &block)
  Player.new(id, swf, lib, &block).script_tags.html_safe
end