flowplayer-gem/lib/flowplayer/rails/helper.rb

19 lines
301 B
Ruby
Raw Normal View History

2011-01-31 22:22:47 +00:00
module Flowplayer
module Helpers
# flowplayer_for :hubble do |f|
# f.option 'foo'
# f.onLoad do
# 'this.unmute();'
# end
def flowplayer_for(id, swf, &block)
FlowPlayer::Player.new(id, swf, &block).script_tags
end
end
end