api/stream/types: huge refactor & simplification of code

- created render() which handles ffmpeg & piping stuff
- merged remux() and merge() into one function
- simplified and cleaned up arguments
- removed headers since they're handled by internal streams now
- removed outdated arguments
This commit is contained in:
wukko
2025-06-24 19:55:50 +06:00
parent 28b85380c9
commit aa376d76f6
2 changed files with 98 additions and 230 deletions

View File

@@ -13,8 +13,6 @@ export default async function(res, streamInfo) {
return await internalStream(streamInfo.data, res);
case "merge":
return await stream.merge(streamInfo, res);
case "remux":
case "mute":
return await stream.remux(streamInfo, res);