blob: 49917752622b45c458a4cd415fa3016221ea5a90 (
plain) (
tree)
|
|
import videojs, { VideoJsPlayer } from 'video.js'
import './pause-bezel'
const Plugin = videojs.getPlugin('plugin')
class BezelsPlugin extends Plugin {
constructor (player: VideoJsPlayer, options?: videojs.ComponentOptions) {
super(player)
this.player.ready(() => {
player.addClass('vjs-bezels')
})
player.addChild('PauseBezel', options)
}
}
videojs.registerPlugin('bezels', BezelsPlugin)
export { BezelsPlugin }
|