diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-03 14:30:55 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-03-03 14:30:55 +0100 |
commit | 6385fe58036fc45c94d04a0279a64e275816e5bf (patch) | |
tree | 40e9308451e4e51fa86c5decaed338518e7d6f10 /client/src/assets/player | |
parent | 8e1237ad83bd7b6a429767da597909d78a143af7 (diff) | |
download | PeerTube-6385fe58036fc45c94d04a0279a64e275816e5bf.tar.gz PeerTube-6385fe58036fc45c94d04a0279a64e275816e5bf.tar.zst PeerTube-6385fe58036fc45c94d04a0279a64e275816e5bf.zip |
Fix stuck hls player with bad redundancy
Diffstat (limited to 'client/src/assets/player')
-rw-r--r-- | client/src/assets/player/peertube-player-options-builder.ts | 6 |
1 files changed, 5 insertions, 1 deletions
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 { | |||
268 | 268 | ||
269 | return { | 269 | return { |
270 | trackerAnnounce, | 270 | trackerAnnounce, |
271 | segmentValidator: segmentValidatorFactory(this.options.p2pMediaLoader.segmentsSha256Url, this.options.common.isLive), | ||
272 | rtcConfig: getRtcConfig(), | 271 | rtcConfig: getRtcConfig(), |
272 | |||
273 | simultaneousHttpDownloads: 1, | 273 | simultaneousHttpDownloads: 1, |
274 | httpFailedSegmentTimeout: 1000, | ||
275 | |||
276 | segmentValidator: segmentValidatorFactory(this.options.p2pMediaLoader.segmentsSha256Url, this.options.common.isLive), | ||
274 | segmentUrlBuilder: segmentUrlBuilderFactory(redundancyUrlManager, 1), | 277 | segmentUrlBuilder: segmentUrlBuilderFactory(redundancyUrlManager, 1), |
278 | |||
275 | useP2P: this.options.common.p2pEnabled, | 279 | useP2P: this.options.common.p2pEnabled, |
276 | consumeOnly, | 280 | consumeOnly, |
277 | 281 | ||