Projekktor::Rails
projekktor-rails provides the video player projekktor via Rails asset pipeline.
Installation
Add this line to your application's Gemfile:
gem 'projekktor-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install projekktor-rails
Usage
Add this to your application.js
//= require projekktor
$(function() {
projekktor('video', {
playerFlashMP4: "/assets/jarisplayer.swf",
playerFlashMP3: "/assets/jarisplayer.swf"
});
});
Add this to your application.css
*= require projekktor
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Update projekktor to latest version on http://www.projekktor.com/:
$ rake update_projekktor