Fix a bug where streams would crash upon FFMPEG exceeding maximum child_process buffer

Change scripts to automatically build before serving
Move typescript to dependencies
Check if the stream is ready to transcode to MPEG-DASH programmatically instead of waiting for 5 seconds
Use session.isLocal instead of matching session.ip against some strings
(session.isLocal does that internally but at least this way looks prettier)
This commit is contained in:
knotteye
2019-11-24 20:17:15 -06:00
parent 239cd252a2
commit 1f3504f698
4 changed files with 22 additions and 28 deletions

View File

@ -5,8 +5,7 @@
"license": "AGPL-3.0",
"author": "knotteye",
"scripts": {
"start": "node build/controller.js",
"build": "tsc",
"start": "tsc && node build/controller.js",
"user": "node build/cli.js",
"setup": "sh install/setup.sh"
},
@ -27,10 +26,10 @@
"recursive-readdir": "^2.2.2",
"socket.io": "^2.3.0",
"strftime": "^0.10.0",
"toml": "^3.0.0"
"toml": "^3.0.0",
"typescript": "^3.6.3"
},
"devDependencies": {
"@types/node": "^12.7.5",
"typescript": "^3.6.3"
"@types/node": "^12.7.5"
}
}