-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Create a settings menu for the control bar #2603
Comments
I've been thinking about this for a while now and do think we should add one. It's just not a small effort to put it together in a way that's configurable by external plugins. If you'd be interested in helping by building some proof of concepts, please do. In the mean time I'll confirm the feature. |
@nickygerritsen and I have been thinking about a solution for the settings menu. We already have quite a lot of menus, so we would like to create something and I think we can do it in such a way we can do it in a PR to video.js What we would want is a simple way to put plugins in the settings menu without the need of writing a new plugin for just adding a submenu. As said before by default the settings menu will not be used (in video.js 5), but it can easily be enabled in the options, like this: videojs('someid', {
controlBar: {
children: [
'playToggle',
'muteToggle',
'volumeControl',
'currentTimeDisplay',
'timeDivider',
'durationDisplay',
'liveDisplay',
'flexibleWidthSpacer',
'progressControl',
'settingsMenuButton': {
entries : [
'subtitlesButton',
'captionsButton',
'playbackRateMenuButton',
'qualityMenuButton'
]
},
'fullscreenToggle'
]
},
}; Now we need to create a Because we want to be able to render menus as submenus, the We think we can use the |
Yeah, this is definitely something that we want to have given how many menu buttons we can have now. I commented on it back in march. I sort of understand how the settings menu would look in your proposal but have a hard time understanding how it acts. Would you happen to have a quick mock-up of how it looks/acts? |
We have created a simple mockup with a possible way of how it looks. In the image a normal select is used, however we think it's better te make it into a UL so the “options” can drop to the topside(or any other side)instead of going down by default. One other solution we could use, is the way YouTube handels these kind of menus in the settings, where the sub menu appears with its options when it's pressed and the settings menu disappears. The MVP in this case would be the settings menu consisting of only sub menus, where we later can add single buttons and/or sliders etc. |
Talking about this with @dmlap, @heff, and @mmcc we were thinking that we don't really know what the best way to make this menu would be. If that is the menu that plugins and more items get added to, then we end up with a similar issue to what we currently have on the control bar: we'll end up with a settings menu that's two player heights tall because of a bunch of settings. |
This is fine by us, we will develop this as a plugin then for now. One question we have is wether you want us to make it on our own github and later move it to the videojs org / merge it or that we create a repo at the videojs org immediately? |
I'm created a new repo videojs-settings-menu for this and added you as a collaborator. |
Currently any user-configuration for features added by plugins require new buttons on the control bar. We should have settings menu that allows plugin authors to add configuration options. And we may decide to add internal options to it, like language selection.
Original Title & Description
Suggestion: Create a menu that plugins can add the different things
Hi please create a menu like kaultra player does where some of the code can go for plugin so that there isent all the room taking on the control bar. Something like credits can go there. A download button. And changing resolutions can go there.
The text was updated successfully, but these errors were encountered: