Is it possible to order videojs-resolution-switcher in the control bar?
mimipaskova opened this issue · comments
Maria commented
Trevor commented
This is a function of videojs and not the plugin. It's possible:
player.getChild('controlBar').addChild('AudioDescriptionButton', {}, 9);
Simply use the name of the button as it's defined. In this case, I'm using a custom button to toggle on/off an audio described version of the video in question so my AD button is defined as "AudioDescriptionButton". If you use the function without passing any parameters for, it's appended to the end of the controlBar, like so:
player.getChild('controlBar').addChild('AudioDescriptionButton', {});