]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Reduce time to throw an error on live problem
authorChocobozzz <me@florianbigard.com>
Wed, 10 May 2023 12:52:02 +0000 (14:52 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 10 May 2023 12:52:02 +0000 (14:52 +0200)
client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts

index 7f7d90ab9383434d557a2fc026cbee72a0e7a81c..63f27eecf5048e358c494b8e78723462a96db38a 100644 (file)
@@ -403,7 +403,7 @@ class Html5Hlsjs {
       this._duration = this.isLive ? Infinity : data.details.totalduration
 
       // Increase network error recovery for lives since they can be broken (server restart, stream interruption etc)
-      if (this.isLive) this.maxNetworkErrorRecovery = 300
+      if (this.isLive) this.maxNetworkErrorRecovery = 30
     })
 
     this.hls.once(Hlsjs.Events.FRAG_LOADED, () => {