aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/videojs-components/settings-panel.ts
blob: 2090abf4516558fbd1d4fe42f9a7be90ff6cb7a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import videojs, { VideoJsPlayer } from 'video.js'

const Component = videojs.getComponent('Component')

class SettingsPanel extends Component {

  constructor (player: VideoJsPlayer, options?: videojs.ComponentOptions) {
    super(player, options)
  }

  createEl () {
    return super.createEl('div', {
      className: 'vjs-settings-panel',
      innerHTML: '',
      tabIndex: -1
    })
  }
}

Component.registerComponent('SettingsPanel', SettingsPanel)

export { SettingsPanel }