diff options
author | Chocobozzz <me@florianbigard.com> | 2022-01-11 11:26:35 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-01-11 11:26:35 +0100 |
commit | f1a0555a88db9ade2b073a2e4dc73c4a6176c8a0 (patch) | |
tree | e1f73376527152fb9ac92447a826bccc9e8f0dd5 /client/src/assets/player/mobile/peertube-mobile-plugin.ts | |
parent | ba9eef5f628764aed6183135e669b17741d24d7a (diff) | |
download | PeerTube-f1a0555a88db9ade2b073a2e4dc73c4a6176c8a0.tar.gz PeerTube-f1a0555a88db9ade2b073a2e4dc73c4a6176c8a0.tar.zst PeerTube-f1a0555a88db9ade2b073a2e4dc73c4a6176c8a0.zip |
Add player controls on mobile
Diffstat (limited to 'client/src/assets/player/mobile/peertube-mobile-plugin.ts')
-rw-r--r-- | client/src/assets/player/mobile/peertube-mobile-plugin.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/client/src/assets/player/mobile/peertube-mobile-plugin.ts b/client/src/assets/player/mobile/peertube-mobile-plugin.ts new file mode 100644 index 000000000..b3834e20d --- /dev/null +++ b/client/src/assets/player/mobile/peertube-mobile-plugin.ts | |||
@@ -0,0 +1,16 @@ | |||
1 | import videojs from 'video.js' | ||
2 | import './peertube-mobile-buttons' | ||
3 | |||
4 | const Plugin = videojs.getPlugin('plugin') | ||
5 | |||
6 | class PeerTubeMobilePlugin extends Plugin { | ||
7 | |||
8 | constructor (player: videojs.Player, options: videojs.PlayerOptions) { | ||
9 | super(player, options) | ||
10 | |||
11 | player.addChild('PeerTubeMobileButtons') | ||
12 | } | ||
13 | } | ||
14 | |||
15 | videojs.registerPlugin('peertubeMobile', PeerTubeMobilePlugin) | ||
16 | export { PeerTubeMobilePlugin } | ||