I’m creating a custom ui config for bitmovin on my react app but I’m not sure how can I create a custom SettingsToggleButton because there is not documentation about it. This is what I have so far:
new SettingsToggleButton({
autoHideWhenNoActiveSettings: false,
settingsPanel: new SettingsPanel({
components: [
new SettingsPanelPage({
title: 'Las settings',
components: [
new SettingsPanelItem({
label: 'Label Text',
}),
]
})
]
})
});
Actually I can see the button, but if I click on it nothing happens.
Thanks for the help Ludo, I’m able to see the settings toggle button but when I click on it nothing happens and nothing is displayed, just an empty click. This is what I got so far
export const settingsToggleButton = new SettingsToggleButton({
autoHideWhenNoActiveSettings: true,
text: 'The Settings',
settingsPanel: new SettingsPanel({
components: [
new SettingsPanelPage({
tabIndex: 0,
components: [
new SettingsPanelItem('Quality',new VideoQualitySelectBox()),
new SettingsPanelItem('Speed',new PlaybackSpeedSelectBox()),
]
})
],
hidden: true
})
});
I was checking the repo that you send to me and everything seems alrigth, I’m not sure what I’m missing
I found the problem, we have to add the settingsPanel to the ControlBar first and then add it again (not sure why) to the SettingsToggleButton inside of a Container within the same ControlBar.