JW Player 5 wrapper for Ruby on Rails 3
Switch branches/tags
Nothing to show
Pull request Compare This branch is even with sekrett:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
MIT-LICENSE
README.rdoc
Rakefile
init.rb
video.mp4

README.rdoc

JwPlayerOnRails

Here is the JW Player 5 wrapper for Ruby on Rails 3

To install:

rails plugin install git://github.com/sekrett/jw_player_on_rails.git

To setup:

rails generate jw_player

This adds player.swf and yt.swf to public/jwplayer/ and jwplayer.js to public/javascripts/.

In your layout add:

<%= jw_player_headers %>

Example Usage

To check player is working simply add:

<%= jw_player("http://github.com/sekrett/jw_player_on_rails/raw/master/video.mp4",
  :width => 200, :height => 110) %>

Copyright © 2010 LongTail Ad Solutions. All Rights Reserved.

Copyright © 2011 Alexander Zubkov, released under the MIT license