No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
A MediaElement gem(engine) for Rails. Makes embedding HTML5 video easy.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 3.1
>= 0
>= 0
>= 0

Runtime

 Project Readme

MediaelementRails

This neat project brings the cool MediaElement.js 2.16.4 (HTML5/Flash/Silverlight video player) to the Rails asset pipeline. NOTE: This gem requires jquery to be included, which shouldn't be an issue.

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:

//= require mediaelement_rails

And CSS

Load the Mediaelement CSS in your application.css:

/*
 *= require mediaelement_rails
 * and optionally:
 *= require mediaelement_rails/mejs-skins
 */

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:

//= require mediaelement_rails/rails

Anything else I should know?

Nothing special! This project includes all assets you might need.

Todo

  • Add support for flashmediaelement-cdn.swf for cases when the assets are hosted on a different domain than the rails application.
  • Setup appraisal gem to test against rails 3.x and 4.x

Maintainers

License

This project rocks and uses MIT-LICENSE.