Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Video JS for Rails 3.1 Asset Pipeline
Ruby
Branch: master
Pull request Compare This branch is 1 commit ahead, 106 commits behind seanbehan:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app/views/videojs_rails
lib
vendor/assets
.gitignore
Gemfile
Rakefile
readme.md
videojs_rails.gemspec

readme.md

VideoJS for Rails 3.1 Asset Pipeline

Installation

Add to your Gemfile

gem 'videojs_rails'

And run bundle to install the library.

bundle

Add the resources to your application.js file

# app/assets/javascripts/application.js
//= require videojs

You can optionally include skins by requiring in app/assets/stylesheets/application.css

/*
*= require_self
*= require videojs
*= require skins/hu.css
*/

currently not working

Usage

<%= videojs_rails source: "http://domain.com/path/to/video.mp4", width:"400px" %>

Resources

http://videojs.com/ http://videojs.com/#getting-started

Something went wrong with that request. Please try again.