Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

refactor(wt-plugin): tighten TS definitions

kontrollantend94ca8d0b777
diff --git a/client/src/assets/player/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/webtorrent/webtorrent-plugin.ts
index 4eaaf51ece..959a557971 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()
}
- updateVideoFile (
+ private updateVideoFile (
videoFile: VideoFile,
options: {
forcePlay?: boolean,