Play video in ruby on rails application -
in y windows application, want play video in application using link http://rubydoc.info/gems/jw_player_helper/0.0.1/file/readme.markdown# . in rails 3 heading of link.
the first 2 steps have done, i.e below: in 3rd step, don't understand says:
add gemjw_player_helper gemfile add <%= javascript_include_tag 'swfobject' %> in html.rb now can utilize <%= video_player(flashvars={}, attributes={}, params={}) %> render jw player can help me figure out do?
example. hope helps.
<%= video_player({:file => "/video/pf2011.flv", :image => "/video/pf2011.jpg"}) %> renders jw player splash screen pf2011.jpg
<%= video_player({:file => "/video/pf2011.flv", :image => "/video/pf2011.jpg"}, {:width => 640, :height => 480, :id => "pf2011_video"}) %> renders jw player resolution 640x480px , id pf2011_video
<%= video_player({:file => "/video/pf2011.flv", :image => "/video/pf2011.jpg", :mute => true}, {:width => 640, :height => 480, :id => "pf2011_video", :onclick => "alert('clicked!');"}) %> you set html.rb video post on page..
ruby-on-rails
No comments:
Post a Comment