diff options
Diffstat (limited to 'client/src/assets/player/peertube-videojs-plugin.ts')
-rw-r--r-- | client/src/assets/player/peertube-videojs-plugin.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts index 4898c1efe..8b50e323e 100644 --- a/client/src/assets/player/peertube-videojs-plugin.ts +++ b/client/src/assets/player/peertube-videojs-plugin.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | // Big thanks to: https://github.com/kmoskwiak/videojs-resolution-switcher | 1 | // Big thanks to: https://github.com/kmoskwiak/videojs-resolution-switcher |
2 | 2 | ||
3 | import videojs, { Player } from 'video.js' | 3 | import * as videojs from 'video.js' |
4 | import * as WebTorrent from 'webtorrent' | 4 | import * as WebTorrent from 'webtorrent' |
5 | import { VideoFile } from '../../../../shared' | 5 | import { VideoFile } from '../../../../shared' |
6 | 6 | ||
@@ -27,7 +27,7 @@ const webtorrent = new WebTorrent({ dht: false }) | |||
27 | 27 | ||
28 | const MenuItem = videojsUntyped.getComponent('MenuItem') | 28 | const MenuItem = videojsUntyped.getComponent('MenuItem') |
29 | const ResolutionMenuItem = videojsUntyped.extend(MenuItem, { | 29 | const ResolutionMenuItem = videojsUntyped.extend(MenuItem, { |
30 | constructor: function (player: Player, options) { | 30 | constructor: function (player: videojs.Player, options) { |
31 | options.selectable = true | 31 | options.selectable = true |
32 | MenuItem.call(this, player, options) | 32 | MenuItem.call(this, player, options) |
33 | 33 | ||