blob: 6afb2c6a30f9d8483146f2e87887b413a0885313 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import videojs from 'video.js'
import { PauseBezel } from './pause-bezel'
const Plugin = videojs.getPlugin('plugin')
class BezelsPlugin extends Plugin {
constructor (player: videojs.Player, options?: videojs.ComponentOptions) {
super(player)
this.player.ready(() => {
player.addClass('vjs-bezels')
})
player.addChild(new PauseBezel(player, options))
}
}
videojs.registerPlugin('bezels', BezelsPlugin)
export { BezelsPlugin }
|