]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/assets/player/videojs-components/settings-panel.ts
Merge branch 'release/2.1.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / assets / player / videojs-components / settings-panel.ts
1 import videojs, { VideoJsPlayer } from 'video.js'
2
3 const Component = videojs.getComponent('Component')
4
5 class SettingsPanel extends Component {
6
7 constructor (player: VideoJsPlayer, options?: videojs.ComponentOptions) {
8 super(player, options)
9 }
10
11 createEl () {
12 return super.createEl('div', {
13 className: 'vjs-settings-panel',
14 innerHTML: '',
15 tabIndex: -1
16 })
17 }
18 }
19
20 Component.registerComponent('SettingsPanel', SettingsPanel)
21
22 export { SettingsPanel }