feat: internal streams

This commit is contained in:
dumbmoron
2024-04-26 11:53:50 +00:00
parent ff93f7e42f
commit 66e58d21ec
5 changed files with 118 additions and 35 deletions

View File

@@ -1,4 +1,5 @@
import { streamAudioOnly, streamDefault, streamLiveRender, streamVideoOnly, convertToGif } from "./types.js";
import { internalStream } from './internal.js'
export default async function(res, streamInfo) {
try {
@@ -7,6 +8,8 @@ export default async function(res, streamInfo) {
return;
}
switch (streamInfo.type) {
case "internal":
return await internalStream(streamInfo, res);
case "render":
await streamLiveRender(streamInfo, res);
break;