Skip to content

Commit

Permalink
Change readme
Browse files Browse the repository at this point in the history
  • Loading branch information
grzlus committed Jul 3, 2013
1 parent a261f85 commit 5052c45
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,41 @@
# VideoJS for Rails 3.1 Asset Pipeline
# VideoJS for Asset Pipeline

## Installation

Add to your Gemfile

```ruby

gem 'videojs_rails'

```

And run bundle to install the library.

```ruby

bundle

```

Add the resources to your application.js file

```coffeescript

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

//= require video
```

You can optionally include skins by requiring in app/assets/stylesheets/application.css
And that resource to application.css file

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

_currently not working_
_currently skins are not implemented (after migrate to 4.1 version)_

## Usage

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

## Resources
Expand Down

0 comments on commit 5052c45

Please sign in to comment.