mirror of
https://github.com/imputnet/cobalt.git
synced 2026-01-16 03:41:33 +00:00
feat: internal streams
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user