aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/peertube-player-manager.ts
diff options
context:
space:
mode:
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),