aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-10 14:52:02 +0200
committerChocobozzz <me@florianbigard.com>2023-05-10 14:52:02 +0200
commit0ef18e5b895c19bb3b7ba994fdc44f1a3694201c (patch)
tree07bedad59290d33a6b42d3a28833f8c3a8fb82c4 /client/src/assets
parent7815dc450ea9f8fd63e2234b6215013a132e6229 (diff)
downloadPeerTube-0ef18e5b895c19bb3b7ba994fdc44f1a3694201c.tar.gz
PeerTube-0ef18e5b895c19bb3b7ba994fdc44f1a3694201c.tar.zst
PeerTube-0ef18e5b895c19bb3b7ba994fdc44f1a3694201c.zip
Reduce time to throw an error on live problem
Diffstat (limited to 'client/src/assets')
-rw-r--r--client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts b/client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts
index 7f7d90ab9..63f27eecf 100644
--- a/client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts
+++ b/client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts
@@ -403,7 +403,7 @@ class Html5Hlsjs {
403 this._duration = this.isLive ? Infinity : data.details.totalduration 403 this._duration = this.isLive ? Infinity : data.details.totalduration
404 404
405 // Increase network error recovery for lives since they can be broken (server restart, stream interruption etc) 405 // Increase network error recovery for lives since they can be broken (server restart, stream interruption etc)
406 if (this.isLive) this.maxNetworkErrorRecovery = 300 406 if (this.isLive) this.maxNetworkErrorRecovery = 30
407 }) 407 })
408 408
409 this.hls.once(Hlsjs.Events.FRAG_LOADED, () => { 409 this.hls.once(Hlsjs.Events.FRAG_LOADED, () => {