]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/initializers/checker-after-init.ts
miniature duration visibility and overlay background opacity
[github/Chocobozzz/PeerTube.git] / server / initializers / checker-after-init.ts
index db31150854d0bc1ca535cf910191190bde34f5fc..9fefba7691a276a39fe48e7fece9ba4d73764a45 100644 (file)
@@ -101,6 +101,13 @@ function checkConfig () {
     }
   }
 
+  // Transcoding
+  if (CONFIG.TRANSCODING.ENABLED) {
+    if (CONFIG.TRANSCODING.WEBTORRENT.ENABLED === false && CONFIG.TRANSCODING.HLS.ENABLED === false) {
+      return 'You need to enable at least WebTorrent transcoding or HLS transcoding.'
+    }
+  }
+
   return null
 }