]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/assets/player/bezels/bezels-plugin.ts
Upgrade to angular 10
[github/Chocobozzz/PeerTube.git] / client / src / assets / player / bezels / bezels-plugin.ts
CommitLineData
512decf3 1import videojs from 'video.js'
f5fcd9f7 2import './pause-bezel'
62ab565d 3
f5fcd9f7 4const Plugin = videojs.getPlugin('plugin')
62ab565d 5
62ab565d 6class BezelsPlugin extends Plugin {
f5fcd9f7 7
7e37e111 8 constructor (player: videojs.Player, options?: videojs.ComponentOptions) {
f5fcd9f7 9 super(player)
62ab565d
RK
10
11 this.player.ready(() => {
12 player.addClass('vjs-bezels')
13 })
14
15 player.addChild('PauseBezel', options)
16 }
17}
18
19videojs.registerPlugin('bezels', BezelsPlugin)
f5fcd9f7 20
62ab565d 21export { BezelsPlugin }