aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/mobile/peertube-mobile-plugin.ts
blob: b3834e20dc065272aac8760c912f8d18f0776a82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import videojs from 'video.js'
import './peertube-mobile-buttons'

const Plugin = videojs.getPlugin('plugin')

class PeerTubeMobilePlugin extends Plugin {

  constructor (player: videojs.Player, options: videojs.PlayerOptions) {
    super(player, options)

    player.addChild('PeerTubeMobileButtons')
  }
}

videojs.registerPlugin('peertubeMobile', PeerTubeMobilePlugin)
export { PeerTubeMobilePlugin }