Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to order videojs-resolution-switcher in the control bar? #113

Open
mimipaskova opened this issue Feb 1, 2018 · 1 comment

Comments

@mimipaskova
Copy link

Hello,
I would like to ask is it possible to preorder control-bar and to put resolution switcher before progress control, because now it is after it like in your demo -
image
I want to move it like this
image
I've searched for the same question, but I didn't find.

Thanks,

@npstcole
Copy link

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', {});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants