Rails asset pipeline integration for JWPlayer.
Ruby
Switch branches/tags
Latest commit 157ff4c Apr 20, 2013 @choix choix Merge pull request #2 from hyperrjas/master
Fixed smart error with player name
Permalink
Failed to load latest commit information.
app/assets Update jwplayer version Mar 5, 2013
lib update helper with flash.swf instead player.swf Apr 20, 2013
.gitignore
Gemfile Initial Sep 21, 2012
LICENSE.txt Initial Sep 21, 2012
README.md
Rakefile
jwplayer-rails.gemspec

README.md

Jwplayer::Rails

JW Player for Rails. Current version of JW Player is 6.2.3115

Installation

Add this line to your application's Gemfile:

gem 'jwplayer-rails'

Or install it yourself as:

$ gem install jwplayer-rails

Usage

First include assets on the page

<%= jwplayer_assets %>

Than place a div with JW Player

<%= jwplayer %>

You can pass options to jwplayer helper to customize it:

<%= jwplayer({width: 500, height: 200}) %>

More information for customization could be found here

Have fun!