Skip to content

sekrett/jw_player_on_rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published