Setting up volume control vertical in video.js

2019-08-29 15:33发布

问题:

There i have been playing around with the HTML5 video.js video player component . And player is absolutely awesome and meet almost all my requirements .

The only issue i have ran into is it has a horizontal volume control bar and i want to place the volume control bar vertical similar to what it sets in flash fall back mode .

Any help regarding this would be really appreciated.

Thanx

回答1:

This worked for me

vjs.ControlBar.prototype.options_ = {
  children: {
    'volumeMenuButton': {
      'volumeBar': {
        'vertical': true
      }
    }
  }
};