diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-11 11:11:00 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-03-11 11:11:00 +0100 |
commit | 4495806f2f5045a0626ab64f43b5fc4deefe2ac0 (patch) | |
tree | e83b61b8da313fe1add571b9dd73261828c38cf9 /server/initializers/constants.ts | |
parent | 052bdb7c120b2ac7a1616a8072f9eedd2ab2f4b6 (diff) | |
parent | 58ae266bada2233945c4446220c22ccc4e7c62b5 (diff) | |
download | PeerTube-4495806f2f5045a0626ab64f43b5fc4deefe2ac0.tar.gz PeerTube-4495806f2f5045a0626ab64f43b5fc4deefe2ac0.tar.zst PeerTube-4495806f2f5045a0626ab64f43b5fc4deefe2ac0.zip |
Merge remote-tracking branch 'weblate/develop' into develop
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 7bc2877aa..1c849b561 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -24,7 +24,7 @@ import { CONFIG, registerConfigChangedHandler } from './config' | |||
24 | 24 | ||
25 | // --------------------------------------------------------------------------- | 25 | // --------------------------------------------------------------------------- |
26 | 26 | ||
27 | const LAST_MIGRATION_VERSION = 685 | 27 | const LAST_MIGRATION_VERSION = 690 |
28 | 28 | ||
29 | // --------------------------------------------------------------------------- | 29 | // --------------------------------------------------------------------------- |
30 | 30 | ||
@@ -700,7 +700,10 @@ const RESUMABLE_UPLOAD_SESSION_LIFETIME = SCHEDULER_INTERVALS_MS.REMOVE_DANGLING | |||
700 | const VIDEO_LIVE = { | 700 | const VIDEO_LIVE = { |
701 | EXTENSION: '.ts', | 701 | EXTENSION: '.ts', |
702 | CLEANUP_DELAY: 1000 * 60 * 5, // 5 minutes | 702 | CLEANUP_DELAY: 1000 * 60 * 5, // 5 minutes |
703 | SEGMENT_TIME_SECONDS: 4, // 4 seconds | 703 | SEGMENT_TIME_SECONDS: { |
704 | DEFAULT_LATENCY: 4, // 4 seconds | ||
705 | SMALL_LATENCY: 2 // 2 seconds | ||
706 | }, | ||
704 | SEGMENTS_LIST_SIZE: 15, // 15 maximum segments in live playlist | 707 | SEGMENTS_LIST_SIZE: 15, // 15 maximum segments in live playlist |
705 | REPLAY_DIRECTORY: 'replay', | 708 | REPLAY_DIRECTORY: 'replay', |
706 | EDGE_LIVE_DELAY_SEGMENTS_NOTIFICATION: 4, | 709 | EDGE_LIVE_DELAY_SEGMENTS_NOTIFICATION: 4, |
@@ -842,7 +845,8 @@ if (isTestInstance() === true) { | |||
842 | PLUGIN_EXTERNAL_AUTH_TOKEN_LIFETIME = 5000 | 845 | PLUGIN_EXTERNAL_AUTH_TOKEN_LIFETIME = 5000 |
843 | 846 | ||
844 | VIDEO_LIVE.CLEANUP_DELAY = 5000 | 847 | VIDEO_LIVE.CLEANUP_DELAY = 5000 |
845 | VIDEO_LIVE.SEGMENT_TIME_SECONDS = 2 | 848 | VIDEO_LIVE.SEGMENT_TIME_SECONDS.DEFAULT_LATENCY = 2 |
849 | VIDEO_LIVE.SEGMENT_TIME_SECONDS.SMALL_LATENCY = 1 | ||
846 | VIDEO_LIVE.EDGE_LIVE_DELAY_SEGMENTS_NOTIFICATION = 1 | 850 | VIDEO_LIVE.EDGE_LIVE_DELAY_SEGMENTS_NOTIFICATION = 1 |
847 | } | 851 | } |
848 | 852 | ||