ActivityPub-federated video streaming platform using P2P directly in your web browser
Optimize watching live files
Chocobozzz71d95f232be4
diff --git a/server/core/lib/live/shared/muxing-session.ts b/server/core/lib/live/shared/muxing-session.tsindex 3159cf780a..9bfeb99912 100644--- a/server/core/lib/live/shared/muxing-session.ts+++ b/server/core/lib/live/shared/muxing-session.ts@@ -187,7 +187,11 @@ class MuxingSession extends EventEmitter implements MuxingSession {await this.transcodingWrapper.run()- this.filesWatcher = watch(this.outDirectory, { depth: 0 })+ this.filesWatcher = watch(this.outDirectory, {+ // Ignore 'segments-sha256.json' and 'segments-sha256.json.tmp' files that are frequently updated and not useful+ ignored: path => path.endsWith('.json') || path.endsWith('json.tmp'),+ depth: 0+ })this.watchMasterFile()this.watchTSFiles()