Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

[DEPRECATED] - This repository is no longer maintained by Avalon media system. The relevant MediaElement plugins are written inline within the Avalon code: https://github.com/avalonmediasystem/avalon

License

Notifications You must be signed in to change notification settings

avalonmediasystem/mediaelement-hd-toggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mediaelement::HDToggle

This gem is a mediaelement.js plugin that adds an HD toggle button to the control bar. It allows users to toggle between 2 specified qualities.

Installation

Add this line to your application's Gemfile:

gem 'mediaelement-hd-toggle'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mediaelement-hd-toggle

Usage

Load the gem assets after mediaelement_rails assets Add "hd-toggle" to the features option in mediaelement player By default the options are: hdToggleLabel: "HD", hdToggleOn: true, hdToggleBetween: ["high", "medium"]

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

[DEPRECATED] - This repository is no longer maintained by Avalon media system. The relevant MediaElement plugins are written inline within the Avalon code: https://github.com/avalonmediasystem/avalon

Resources

License

Stars

Watchers

Forks

Packages

No packages published