From 0ef18e5b895c19bb3b7ba994fdc44f1a3694201c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 10 May 2023 14:52:02 +0200 Subject: [PATCH] Reduce time to throw an error on live problem --- client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { 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, () => {