Skip to content

futurelearn/video-js-hd-toggle-button-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Video.js HD Toggle Button Plugin

Usage

  • Include the .js and .css file in your project.
  • Specify the HdToggleButton plugin in the Video.js options and pass in the source for the standard and HD videos:
var options = {
  'plugins': {
    'HdToggleButton': {
      'sdSrc': 'http://example.com/videos/standard.mp4',
      'hdSrc': 'http://example.com/videos/hd.mp4'
    }
  }
};

videojs('video-player-id', options);

About

Provides a button to toggle HD video stream in Video.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.9%
  • CSS 16.1%