├── .gitignore
├── CHANGELOG.md
├── Gemfile
├── MIT-LICENSE
├── README.md
├── Rakefile
├── app
└── assets
│ ├── images
│ └── mediaelement_rails
│ │ ├── background.png
│ │ ├── bigplay.fw.png
│ │ ├── bigplay.png
│ │ ├── bigplay.svg
│ │ ├── controls-ted.png
│ │ ├── controls-wmp-bg.png
│ │ ├── controls-wmp.png
│ │ ├── controls.fw.png
│ │ ├── controls.png
│ │ ├── controls.svg
│ │ ├── loading.gif
│ │ └── skipback.png
│ ├── javascripts
│ └── mediaelement_rails
│ │ ├── index.js
│ │ ├── mediaelement.js
│ │ ├── mediaelementplayer.js
│ │ └── rails.js.erb
│ ├── plugins
│ └── mediaelement_rails
│ │ ├── flashmediaelement-cdn.swf
│ │ ├── flashmediaelement.swf
│ │ └── silverlightmediaelement.xap
│ └── stylesheets
│ └── mediaelement_rails
│ ├── index.css
│ ├── mediaelementplayer.css.erb
│ └── mejs-skins.css.erb
├── lib
├── mediaelement_rails.rb
└── mediaelement_rails
│ ├── engine.rb
│ └── version.rb
├── mediaelement_rails.gemspec
├── mediaelement_rails.thor
├── script
└── rails
├── test
├── dummy
│ ├── Rakefile
│ ├── app
│ │ ├── assets
│ │ │ ├── javascripts
│ │ │ │ ├── mediaelement-and-player.js
│ │ │ │ └── mediaelement-without-player.js
│ │ │ └── stylesheets
│ │ │ │ ├── player-skins.css
│ │ │ │ └── player.css
│ │ ├── controllers
│ │ │ └── application_controller.rb
│ │ ├── helpers
│ │ │ └── application_helper.rb
│ │ ├── mailers
│ │ │ └── .gitkeep
│ │ ├── models
│ │ │ └── .gitkeep
│ │ └── views
│ │ │ └── layouts
│ │ │ └── application.html.erb
│ ├── config.ru
│ ├── config
│ │ ├── application.rb
│ │ ├── boot.rb
│ │ ├── database.yml
│ │ ├── environment.rb
│ │ ├── environments
│ │ │ ├── development.rb
│ │ │ ├── production.rb
│ │ │ └── test.rb
│ │ ├── initializers
│ │ │ ├── backtrace_silencers.rb
│ │ │ ├── inflections.rb
│ │ │ ├── mime_types.rb
│ │ │ ├── secret_token.rb
│ │ │ ├── session_store.rb
│ │ │ └── wrap_parameters.rb
│ │ ├── locales
│ │ │ └── en.yml
│ │ └── routes.rb
│ ├── db
│ │ └── .gitkeep
│ ├── lib
│ │ └── assets
│ │ │ └── .gitkeep
│ ├── log
│ │ └── .gitkeep
│ ├── public
│ │ ├── 404.html
│ │ ├── 422.html
│ │ ├── 500.html
│ │ └── favicon.ico
│ └── script
│ │ └── rails
├── integration
│ └── assets_test.rb
└── test_helper.rb
└── vendor
└── .gitkeep
/.gitignore:
--------------------------------------------------------------------------------
1 | *.DS_Store
2 | .bundle/
3 | pkg/
4 | Gemfile.lock
5 | log/*.log
6 | test/dummy/db/*.sqlite3
7 | test/dummy/log/*.log
8 | test/dummy/tmp/
9 | vendor/mediaelement
10 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## Changelog
2 |
3 | ### v0.8.2 (2015-08-07)
4 |
5 | - Updated MediaElement.js to 2.18.0
6 |
7 | ### v0.8.1
8 |
9 | - Updated MediaElement.js to 2.14.4 (danlopez191)
10 |
11 | ### v0.8
12 |
13 | - Updated MediaElement.js to 2.14.2
14 |
15 | ### v0.7.0
16 |
17 | - Updated MediaElement.js to 2.13.2
18 | - Change "git co" to "git checkout" in thor script
19 |
--------------------------------------------------------------------------------
/Gemfile:
--------------------------------------------------------------------------------
1 | source "http://rubygems.org"
2 |
3 | # Specify your gem's dependencies in medialement_rails.gemspec
4 | gemspec
5 |
--------------------------------------------------------------------------------
/MIT-LICENSE:
--------------------------------------------------------------------------------
1 | Copyright 2014 Pete Browne, Tobias Schlottke, Mark Oleson
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # MediaelementRails #
2 |
3 | This neat project brings the cool [MediaElement.js](http://mediaelementjs.com/) 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.
4 |
5 | ## All you have to do is: ##
6 |
7 | Add the gem to the list of required gems in your `Gemfile`:
8 |
9 | ``` ruby
10 | # ...
11 | gem "mediaelement_rails"
12 | # ...
13 | ```
14 |
15 | ### Javascript ###
16 |
17 | Load the Mediaelement Javascript in your `application.js`:
18 |
19 | ``` javascript
20 | //= require mediaelement_rails
21 | ```
22 |
23 | ### And CSS ###
24 |
25 | Load the Mediaelement CSS in your `application.css`:
26 |
27 | ``` css
28 | /*
29 | *= require mediaelement_rails
30 | * and optionally:
31 | *= require mediaelement_rails/mejs-skins
32 | */
33 | ```
34 |
35 | ## Wanna use MediaElement (not the player) only? ##
36 |
37 | This is easy as hell too!
38 | Don't include any CSS and include the following in your `application.js` to get it working:
39 |
40 | ``` javascript
41 | //= require mediaelement_rails/rails
42 | ```
43 |
44 | ## Anything else I should know? ##
45 |
46 | Nothing special! This project includes all assets you might need.
47 |
48 | ## Todo ##
49 |
50 | - Add support for `flashmediaelement-cdn.swf` for cases when the assets are hosted on a different domain than the rails application.
51 | - Setup [appraisal](https://github.com/thoughtbot/appraisal) gem to test against rails 3.x and 4.x
52 |
53 | ## Maintainers ##
54 |
55 | - [Mark Oleson](https://github.com/fusion2004) - current
56 | - [Tobias Schlottke](https://github.com/tobsch)
57 | - [Pete Browne](https://github.com/petebrowne)
58 |
59 | ## License ##
60 |
61 | This project rocks and uses MIT-LICENSE.
62 |
--------------------------------------------------------------------------------
/Rakefile:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env rake
2 | require "bundler/gem_tasks"
3 |
4 | require "rake/testtask"
5 | Rake::TestTask.new(:test) do |t|
6 | t.libs << "lib"
7 | t.libs << "test"
8 | t.pattern = "test/**/*_test.rb"
9 | t.verbose = false
10 | end
11 |
12 | task :default => :test
13 |
--------------------------------------------------------------------------------
/app/assets/images/mediaelement_rails/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tobsch/mediaelement_rails/00b46f3389a120841b41695d3fd7dead2a20a54e/app/assets/images/mediaelement_rails/background.png
--------------------------------------------------------------------------------
/app/assets/images/mediaelement_rails/bigplay.fw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tobsch/mediaelement_rails/00b46f3389a120841b41695d3fd7dead2a20a54e/app/assets/images/mediaelement_rails/bigplay.fw.png
--------------------------------------------------------------------------------
/app/assets/images/mediaelement_rails/bigplay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tobsch/mediaelement_rails/00b46f3389a120841b41695d3fd7dead2a20a54e/app/assets/images/mediaelement_rails/bigplay.png
--------------------------------------------------------------------------------
/app/assets/images/mediaelement_rails/bigplay.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/assets/images/mediaelement_rails/controls-ted.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tobsch/mediaelement_rails/00b46f3389a120841b41695d3fd7dead2a20a54e/app/assets/images/mediaelement_rails/controls-ted.png
--------------------------------------------------------------------------------
/app/assets/images/mediaelement_rails/controls-wmp-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tobsch/mediaelement_rails/00b46f3389a120841b41695d3fd7dead2a20a54e/app/assets/images/mediaelement_rails/controls-wmp-bg.png
--------------------------------------------------------------------------------
/app/assets/images/mediaelement_rails/controls-wmp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tobsch/mediaelement_rails/00b46f3389a120841b41695d3fd7dead2a20a54e/app/assets/images/mediaelement_rails/controls-wmp.png
--------------------------------------------------------------------------------
/app/assets/images/mediaelement_rails/controls.fw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tobsch/mediaelement_rails/00b46f3389a120841b41695d3fd7dead2a20a54e/app/assets/images/mediaelement_rails/controls.fw.png
--------------------------------------------------------------------------------
/app/assets/images/mediaelement_rails/controls.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tobsch/mediaelement_rails/00b46f3389a120841b41695d3fd7dead2a20a54e/app/assets/images/mediaelement_rails/controls.png
--------------------------------------------------------------------------------
/app/assets/images/mediaelement_rails/controls.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/assets/images/mediaelement_rails/loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tobsch/mediaelement_rails/00b46f3389a120841b41695d3fd7dead2a20a54e/app/assets/images/mediaelement_rails/loading.gif
--------------------------------------------------------------------------------
/app/assets/images/mediaelement_rails/skipback.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tobsch/mediaelement_rails/00b46f3389a120841b41695d3fd7dead2a20a54e/app/assets/images/mediaelement_rails/skipback.png
--------------------------------------------------------------------------------
/app/assets/javascripts/mediaelement_rails/index.js:
--------------------------------------------------------------------------------
1 | //= require ./rails
2 | //= require ./mediaelementplayer
--------------------------------------------------------------------------------
/app/assets/javascripts/mediaelement_rails/mediaelement.js:
--------------------------------------------------------------------------------
1 | /*!
2 | *
3 | * MediaElement.js
4 | * HTML5