]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
refactor(wt-plugin): tighten TS definitions
authorkontrollanten <6680299+kontrollanten@users.noreply.github.com>
Mon, 7 Dec 2020 07:42:36 +0000 (08:42 +0100)
committerChocobozzz <chocobozzz@cpy.re>
Mon, 7 Dec 2020 15:52:35 +0000 (16:52 +0100)
client/src/assets/player/webtorrent/webtorrent-plugin.ts

index 4eaaf51ecec01e67d862169b00e0526f3546a154..959a5579712a5753e511574ba1627644e905dcef 100644 (file)
@@ -68,7 +68,7 @@ class WebTorrentPlugin extends Plugin {
 
   private downloadSpeeds: number[] = []
 
-  constructor (player: videojs.Player, options?: WebtorrentPluginOptions) {
+  constructor (player: videojs.Player, options: WebtorrentPluginOptions) {
     super(player)
 
     this.startTime = timeToInt(options.startTime)
@@ -129,7 +129,7 @@ class WebTorrentPlugin extends Plugin {
       : this.pickAverageVideoFile()
 }
 
-  updateVideoFile (
+  private updateVideoFile (
     videoFile: VideoFile,
     options: {
       forcePlay?: boolean,