const Component: VideoJSComponentInterface = videojsUntyped.getComponent('Component')
class SettingsButton extends Button {
+ playerComponent = videojs.Player
+ dialog: any
+ dialogEl: any
+ menu: any
+ panel: any
+ panelChild: any
+
+ addSettingsItemHandler: Function
+ disposeSettingsItemHandler: Function
+ playerClickHandler: Function
+ userInactiveHandler: Function
+
constructor (player: videojs.Player, options: any) {
super(player, options)
}
showDialog () {
+ this.player_.peertube().onMenuOpen()
+
this.menu.el_.style.opacity = '1'
this.dialog.show()
}
hideDialog () {
+ this.player_.peertube().onMenuClosed()
+
this.dialog.hide()
this.setDialogSize(this.getComponentSize(this.menu))
this.menu.el_.style.opacity = '1'