Module: Flowplayer::Helper
- Defined in:
- lib/flowplayer/railties/helper.rb
Instance Method Summary collapse
-
#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.
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)..html_safe end |