Check live duration and size

This commit is contained in:
Chocobozzz 2020-09-25 16:19:35 +02:00
parent e2d9d60383
commit 09c16166a4
No known key found for this signature in database
GPG key ID: 583A612D890159BE
27 changed files with 436 additions and 168 deletions

View file

@ -118,6 +118,9 @@ async function getConfig (req: express.Request, res: express.Response) {
live: {
enabled: CONFIG.LIVE.ENABLED,
allowReplay: CONFIG.LIVE.ALLOW_REPLAY,
maxDuration: CONFIG.LIVE.MAX_DURATION,
transcoding: {
enabled: CONFIG.LIVE.TRANSCODING.ENABLED,
enabledResolutions: getEnabledResolutions('live')
@ -425,6 +428,8 @@ function customConfig (): CustomConfig {
},
live: {
enabled: CONFIG.LIVE.ENABLED,
allowReplay: CONFIG.LIVE.ALLOW_REPLAY,
maxDuration: CONFIG.LIVE.MAX_DURATION,
transcoding: {
enabled: CONFIG.LIVE.TRANSCODING.ENABLED,
threads: CONFIG.LIVE.TRANSCODING.THREADS,