]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Revert "refactor(wt-plugin): tighten TS definitions"
authorkontrollanten <6680299+kontrollanten@users.noreply.github.com>
Mon, 7 Dec 2020 13:18:37 +0000 (14:18 +0100)
committerChocobozzz <chocobozzz@cpy.re>
Mon, 7 Dec 2020 15:52:35 +0000 (16:52 +0100)
This reverts commit cdca521e1560bf8b215f8eb17576985e7a77cff6.

client/src/assets/player/webtorrent/webtorrent-plugin.ts

index 959a5579712a5753e511574ba1627644e905dcef..4eaaf51ecec01e67d862169b00e0526f3546a154 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()
 }
 
-  private updateVideoFile (
+  updateVideoFile (
     videoFile: VideoFile,
     options: {
       forcePlay?: boolean,