MediaelementRails
This neat project brings the cool MediaElement.js (HTML5/Flash/Silverlight video player) to the Rails asset pipeline.
All you have to do is:
Add the gem to the list of required gems in your Gemfile
:
gem "mediaelement_rails"
Javascript
Load the Mediaelement Javascript in your application.js
:
And CSS
Load the Mediaelement CSS in your application.css
:
Wanna use MediaElement (not the player) only?
This is easy as hell too!
Don't include any CSS and include the following in your application.js
to get it working:
Anything else I should know?
Nothing special! This project includes all assets you might need.
This project rocks and uses MIT-LICENSE.