PeerTube/client/src/assets/player/videojs-components/settings-panel-child.ts

23 lines
514 B
TypeScript
Raw Normal View History

2020-04-17 04:20:12 -05:00
import videojs from 'video.js/dist/alt/video.core.js'
2020-01-28 10:29:50 -06:00
const Component = videojs.getComponent('Component')
class SettingsPanelChild extends Component {
2020-04-17 04:20:12 -05:00
constructor (player: videojs.Player, options?: videojs.ComponentOptions) {
2020-01-28 10:29:50 -06:00
super(player, options)
}
createEl () {
return super.createEl('div', {
className: 'vjs-settings-panel-child',
innerHTML: '',
tabIndex: -1
})
}
}
Component.registerComponent('SettingsPanelChild', SettingsPanelChild)
export { SettingsPanelChild }