Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Gem package of video.js for Rails 3.1+
JavaScript
branch: master

This branch is 3 commits ahead, 9 commits behind nbudin:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app/assets
lib
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
videojs.gemspec

README.md

videojs for Rails 3.1+

Just a little gem that packages up video.js as a gem so you can easily add it to your Rails apps using the asset pipeline.

Installing

Add to your Gemfile:

gem "videojs"

Add to your application.js:

//= require video

Add to your application.css:

//= require video-js

Then just use video.js as normal.

Including skins

I've included all the skins that ship with video.js by default. To use one, just add to your application.css:

//= require video-js/skins/tube

Or whichever skin you want. Make sure to add the appropriate CSS class to your <video> elements as well.

Something went wrong with that request. Please try again.