From 8426a71144108b645f26f1ad663e066444b38ceb Mon Sep 17 00:00:00 2001 From: kontrollanten <6680299+kontrollanten@users.noreply.github.com> Date: Mon, 7 Dec 2020 14:18:37 +0100 Subject: Revert "refactor(wt-plugin): tighten TS definitions" This reverts commit cdca521e1560bf8b215f8eb17576985e7a77cff6. --- client/src/assets/player/webtorrent/webtorrent-plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client') diff --git a/client/src/assets/player/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/webtorrent/webtorrent-plugin.ts index 959a55797..4eaaf51ec 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, -- cgit v1.2.3