common: mp4 parsing should accept a console

This commit is contained in:
Koushik Dutta
2021-10-05 00:01:06 -07:00
parent c412d819e0
commit dfd00df86b

View File

@@ -15,7 +15,7 @@ export interface FFMpegFragmentedMP4Session {
generator: AsyncGenerator<MP4Atom>;
}
export async function startFFMPegFragmetedMP4Session(ffmpegInput: FFMpegInput, audioOutputArgs: string[], videoOutputArgs: string[]): Promise<FFMpegFragmentedMP4Session> {
export async function startFFMPegFragmetedMP4Session(ffmpegInput: FFMpegInput, audioOutputArgs: string[], videoOutputArgs: string[], console: Console): Promise<FFMpegFragmentedMP4Session> {
return new Promise(async (resolve) => {
const server = createServer(socket => {
server.close();