const component: VideoJSComponentInterface = videojsUntyped.getComponent('Component')
class SettingsMenuItem extends MenuItem {
+ settingsButton: any
+ dialog: any
+ mainMenu: any
+ panel: any
+ panelChild: any
+ panelChildEl: any
+ size: any
+ menuToLoad: string
+ subMenu: any
+
+ submenuClickHandler: Function
+ transitionEndHandler: Function
+
+ settingsSubMenuTitleEl_: any
+ settingsSubMenuValueEl_: any
+ settingsSubMenuEl_: any
constructor (player: videojs.Player, options: any, entry: string, menuButton: VideoJSComponentInterface) {
super(player, options)
this.settingsSubMenuEl_.appendChild(this.subMenu.menu.el_)
this.update()
this.bindClickEvents()
-
}, 0)
})
}
// To update the sub menu value on click, setTimeout is needed because
// updating the value is not instant
setTimeout(() => this.update(event), 0)
+
+ // Seems like videojs adds a vjs-hidden class on the caption menu after a click
+ // We don't need it
+ this.subMenu.menu.removeClass('vjs-hidden')
}
/**