]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/assets/player/webtorrent/webtorrent-plugin.ts
Revert "refactor(wt-plugin): tighten TS definitions"
[github/Chocobozzz/PeerTube.git] / 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,