diff options
author | Chocobozzz <me@florianbigard.com> | 2020-09-25 10:04:21 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-11-09 15:33:04 +0100 |
commit | a5cf76afa378aae81af2a9b0ce548e5d2582f832 (patch) | |
tree | 58da320232bee7c9656774c5d6811e82bbf6c696 /server/initializers/constants.ts | |
parent | de6310b2fcbb8a6b79c546b23dfa1920724faaa7 (diff) | |
download | PeerTube-a5cf76afa378aae81af2a9b0ce548e5d2582f832.tar.gz PeerTube-a5cf76afa378aae81af2a9b0ce548e5d2582f832.tar.zst PeerTube-a5cf76afa378aae81af2a9b0ce548e5d2582f832.zip |
Add watch messages if live has not started
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 606eeba2d..82d04a94e 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -139,7 +139,8 @@ const JOB_ATTEMPTS: { [id in JobType]: number } = { | |||
139 | 'email': 5, | 139 | 'email': 5, |
140 | 'videos-views': 1, | 140 | 'videos-views': 1, |
141 | 'activitypub-refresher': 1, | 141 | 'activitypub-refresher': 1, |
142 | 'video-redundancy': 1 | 142 | 'video-redundancy': 1, |
143 | 'video-live-ending': 1 | ||
143 | } | 144 | } |
144 | const JOB_CONCURRENCY: { [id in JobType]: number } = { | 145 | const JOB_CONCURRENCY: { [id in JobType]: number } = { |
145 | 'activitypub-http-broadcast': 1, | 146 | 'activitypub-http-broadcast': 1, |
@@ -152,7 +153,8 @@ const JOB_CONCURRENCY: { [id in JobType]: number } = { | |||
152 | 'email': 5, | 153 | 'email': 5, |
153 | 'videos-views': 1, | 154 | 'videos-views': 1, |
154 | 'activitypub-refresher': 1, | 155 | 'activitypub-refresher': 1, |
155 | 'video-redundancy': 1 | 156 | 'video-redundancy': 1, |
157 | 'video-live-ending': 1 | ||
156 | } | 158 | } |
157 | const JOB_TTL: { [id in JobType]: number } = { | 159 | const JOB_TTL: { [id in JobType]: number } = { |
158 | 'activitypub-http-broadcast': 60000 * 10, // 10 minutes | 160 | 'activitypub-http-broadcast': 60000 * 10, // 10 minutes |
@@ -165,7 +167,8 @@ const JOB_TTL: { [id in JobType]: number } = { | |||
165 | 'email': 60000 * 10, // 10 minutes | 167 | 'email': 60000 * 10, // 10 minutes |
166 | 'videos-views': undefined, // Unlimited | 168 | 'videos-views': undefined, // Unlimited |
167 | 'activitypub-refresher': 60000 * 10, // 10 minutes | 169 | 'activitypub-refresher': 60000 * 10, // 10 minutes |
168 | 'video-redundancy': 1000 * 3600 * 3 // 3 hours | 170 | 'video-redundancy': 1000 * 3600 * 3, // 3 hours |
171 | 'video-live-ending': 1000 * 60 * 10 // 10 minutes | ||
169 | } | 172 | } |
170 | const REPEAT_JOBS: { [ id: string ]: EveryRepeatOptions | CronRepeatOptions } = { | 173 | const REPEAT_JOBS: { [ id: string ]: EveryRepeatOptions | CronRepeatOptions } = { |
171 | 'videos-views': { | 174 | 'videos-views': { |
@@ -605,6 +608,7 @@ const HLS_REDUNDANCY_DIRECTORY = join(CONFIG.STORAGE.REDUNDANCY_DIR, 'hls') | |||
605 | 608 | ||
606 | const VIDEO_LIVE = { | 609 | const VIDEO_LIVE = { |
607 | EXTENSION: '.ts', | 610 | EXTENSION: '.ts', |
611 | CLEANUP_DELAY: 1000 * 60 * 5, // 5 mintues | ||
608 | RTMP: { | 612 | RTMP: { |
609 | CHUNK_SIZE: 60000, | 613 | CHUNK_SIZE: 60000, |
610 | GOP_CACHE: true, | 614 | GOP_CACHE: true, |