diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-03 14:30:55 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-03-08 09:45:40 +0100 |
commit | e55079c90b0bc8ec287e6a09b981d53f2f46d379 (patch) | |
tree | e9de1dfc499507dc8a9c732bdcd37fc8f6ba040a /client/src/assets/player | |
parent | f6f48301a9ad392759d714d2cff13f1564942a50 (diff) | |
download | PeerTube-e55079c90b0bc8ec287e6a09b981d53f2f46d379.tar.gz PeerTube-e55079c90b0bc8ec287e6a09b981d53f2f46d379.tar.zst PeerTube-e55079c90b0bc8ec287e6a09b981d53f2f46d379.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 | ||