From 6385fe58036fc45c94d04a0279a64e275816e5bf Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 3 Mar 2022 14:30:55 +0100 Subject: Fix stuck hls player with bad redundancy --- client/src/assets/player/peertube-player-options-builder.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'client/src/assets') diff --git a/client/src/assets/player/peertube-player-options-builder.ts b/client/src/assets/player/peertube-player-options-builder.ts index 71be5ccff..7a82b128d 100644 --- a/client/src/assets/player/peertube-player-options-builder.ts +++ b/client/src/assets/player/peertube-player-options-builder.ts @@ -268,10 +268,14 @@ export class PeertubePlayerOptionsBuilder { return { trackerAnnounce, - segmentValidator: segmentValidatorFactory(this.options.p2pMediaLoader.segmentsSha256Url, this.options.common.isLive), rtcConfig: getRtcConfig(), + simultaneousHttpDownloads: 1, + httpFailedSegmentTimeout: 1000, + + segmentValidator: segmentValidatorFactory(this.options.p2pMediaLoader.segmentsSha256Url, this.options.common.isLive), segmentUrlBuilder: segmentUrlBuilderFactory(redundancyUrlManager, 1), + useP2P: this.options.common.p2pEnabled, consumeOnly, -- cgit v1.2.3