diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-04 14:16:57 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-11-09 15:33:04 +0100 |
commit | 68e70a745b2010cd0199864a2addd60d8f99c732 (patch) | |
tree | a0b1b061d205321e0f6eb80e5b44d7afd06aab14 /server/initializers/constants.ts | |
parent | 97969c4edf51b37eee691adba43368bb0fbb729b (diff) | |
download | PeerTube-68e70a745b2010cd0199864a2addd60d8f99c732.tar.gz PeerTube-68e70a745b2010cd0199864a2addd60d8f99c732.tar.zst PeerTube-68e70a745b2010cd0199864a2addd60d8f99c732.zip |
Add save replay live tests
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index f8380eaa0..d1f94e6e6 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -609,7 +609,7 @@ const HLS_REDUNDANCY_DIRECTORY = join(CONFIG.STORAGE.REDUNDANCY_DIR, 'hls') | |||
609 | const VIDEO_LIVE = { | 609 | const VIDEO_LIVE = { |
610 | EXTENSION: '.ts', | 610 | EXTENSION: '.ts', |
611 | CLEANUP_DELAY: 1000 * 60 * 5, // 5 minutes | 611 | CLEANUP_DELAY: 1000 * 60 * 5, // 5 minutes |
612 | SEGMENT_TIME: 4, // 4 seconds | 612 | SEGMENT_TIME_SECONDS: 4, // 4 seconds |
613 | SEGMENTS_LIST_SIZE: 15, // 15 maximum segments in live playlist | 613 | SEGMENTS_LIST_SIZE: 15, // 15 maximum segments in live playlist |
614 | RTMP: { | 614 | RTMP: { |
615 | CHUNK_SIZE: 60000, | 615 | CHUNK_SIZE: 60000, |
@@ -738,7 +738,8 @@ if (isTestInstance() === true) { | |||
738 | 738 | ||
739 | PLUGIN_EXTERNAL_AUTH_TOKEN_LIFETIME = 5000 | 739 | PLUGIN_EXTERNAL_AUTH_TOKEN_LIFETIME = 5000 |
740 | 740 | ||
741 | VIDEO_LIVE.CLEANUP_DELAY = 10000 | 741 | VIDEO_LIVE.CLEANUP_DELAY = 5000 |
742 | VIDEO_LIVE.SEGMENT_TIME_SECONDS = 2 | ||
742 | } | 743 | } |
743 | 744 | ||
744 | updateWebserverUrls() | 745 | updateWebserverUrls() |