aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/peertube-player-manager.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-10 14:21:26 +0100
committerChocobozzz <me@florianbigard.com>2020-11-10 14:21:26 +0100
commit25b7c847249c2b7f7b309b14eecb03dd024db649 (patch)
treebad822d4a10f902a23ad29ca5569e4f8b824446f /client/src/assets/player/peertube-player-manager.ts
parent210856a7be4631540791bad027fb3ef0f7a51f14 (diff)
downloadPeerTube-25b7c847249c2b7f7b309b14eecb03dd024db649.tar.gz
PeerTube-25b7c847249c2b7f7b309b14eecb03dd024db649.tar.zst
PeerTube-25b7c847249c2b7f7b309b14eecb03dd024db649.zip
Try to optimize sha segments fetching
Diffstat (limited to 'client/src/assets/player/peertube-player-manager.ts')
-rw-r--r--client/src/assets/player/peertube-player-manager.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts
index c1953043e..da23c59a7 100644
--- a/client/src/assets/player/peertube-player-manager.ts
+++ b/client/src/assets/player/peertube-player-manager.ts
@@ -98,6 +98,8 @@ export interface CommonOptions extends CustomizationOptions {
98 videoViewUrl: string 98 videoViewUrl: string
99 embedUrl: string 99 embedUrl: string
100 100
101 isLive: boolean
102
101 language?: string 103 language?: string
102 104
103 videoCaptions: VideoJSCaption[] 105 videoCaptions: VideoJSCaption[]
@@ -323,7 +325,7 @@ export class PeertubePlayerManager {
323 const p2pMediaLoaderConfig = { 325 const p2pMediaLoaderConfig = {
324 loader: { 326 loader: {
325 trackerAnnounce, 327 trackerAnnounce,
326 segmentValidator: segmentValidatorFactory(options.p2pMediaLoader.segmentsSha256Url), 328 segmentValidator: segmentValidatorFactory(options.p2pMediaLoader.segmentsSha256Url, options.common.isLive),
327 rtcConfig: getRtcConfig(), 329 rtcConfig: getRtcConfig(),
328 requiredSegmentsPriority: 1, 330 requiredSegmentsPriority: 1,
329 segmentUrlBuilder: segmentUrlBuilderFactory(redundancyUrlManager), 331 segmentUrlBuilder: segmentUrlBuilderFactory(redundancyUrlManager),