Module: Flowplayer::Helper

Defined in:
lib/flowplayer/railties/helper.rb

Instance Method Summary collapse

Instance Method Details

#flowplayer_for(id, swf, lib = 'jquery', &block) ⇒ Object

flowplayer_for :hubble do |f| f.option 'foo' f.onLoad do 'this.unmute();' end f.onStart do |clip| 'alert(clip.metaData.width);' end



13
14
15
# File 'lib/flowplayer/railties/helper.rb', line 13

def flowplayer_for(id, swf, lib='jquery', &block)
  Player.new(id, swf, lib, &block).script_tags.html_safe
end