ActivityPub-federated video streaming platform using P2P directly in your web browser
Revert "refactor(wt-plugin): tighten TS definitions"
kontrollanten8426a7114410
diff --git a/client/src/assets/player/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/webtorrent/webtorrent-plugin.tsindex 959a557971..4eaaf51ece 100644--- a/client/src/assets/player/webtorrent/webtorrent-plugin.ts+++ b/client/src/assets/player/webtorrent/webtorrent-plugin.ts@@ -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,