Adds HTML5 EssenceAudio
and EssenceVideo
essences to your Alchemy CMS powered site.
This version is compatible with Alchemy version 3.0 and above only.
Also this plugin does not contain a EssenceFlash
any more. If you need EssenceFlash
, you need to use version 0.3-stable.
- For Alchemy v2.7.0 please use version 0.2.0.
- For Alchemy v2.6.0 and below please use version 0.1.0.
Make sure you have Alchemy CMS installed.
Add this line to your application's Gemfile:
gem 'alchemy-richmedia-essences', github: 'AlchemyCMS/alchemy-richmedia-essences'
And then execute:
$ bundle install
- After installing or updating, prepare your database with:
$ rake alchemy_richmedia_essences:install:migrations db:migrate
- In your
elements.yml
add one of these essences to your element of choice.
# elements.yml
- name: video
contents:
- name: video
type: EssenceVideo
- name: audio
contents:
- name: audio
type: EssenceAudio
This plugin just provides HTML5 <video>
and <audio>
tags and no styling at all. The players will appear as the browser vendors provide.
If you want a cross browser and customizable player with Flash® fallback, then we strongly recommend something like http://mediaelementjs.com/
There is even a gem https://github.com/tobsch/mediaelement_rails that provides everthing for the Rails' asset pipeline.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request