From e14de000f9d744d354322e65cc9fcdbfa2d0f432 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 18 Nov 2020 11:24:28 +0100 Subject: [PATCH] Update live settings edge delay --- client/src/assets/player/peertube-player-manager.ts | 2 +- server/initializers/constants.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts index 892385a0a..da23c59a7 100644 --- a/client/src/assets/player/peertube-player-manager.ts +++ b/client/src/assets/player/peertube-player-manager.ts @@ -353,7 +353,7 @@ export class PeertubePlayerManager { hlsjsConfig: { capLevelToPlayerSize: true, autoStartLoad: false, - liveSyncDurationCount: 7, + liveSyncDurationCount: 5, loader: new p2pMediaLoaderModule.Engine(p2pMediaLoaderConfig).createLoaderClass() } } diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 083351d61..b33a62772 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -623,7 +623,7 @@ const VIDEO_LIVE = { CLEANUP_DELAY: 1000 * 60 * 5, // 5 minutes SEGMENT_TIME_SECONDS: 4, // 4 seconds SEGMENTS_LIST_SIZE: 15, // 15 maximum segments in live playlist - EDGE_LIVE_DELAY_SEGMENTS_NOTIFICATION: 5, + EDGE_LIVE_DELAY_SEGMENTS_NOTIFICATION: 4, RTMP: { CHUNK_SIZE: 60000, GOP_CACHE: true,