mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-13 13:47:38 +02:00
stream: don't listen for close
event for audio
This commit is contained in:
@ -96,7 +96,9 @@ export async function streamLiveRender(streamInfo, res) {
|
|||||||
res.setHeader('Connection', 'keep-alive');
|
res.setHeader('Connection', 'keep-alive');
|
||||||
res.setHeader('Content-Disposition', contentDisposition(streamInfo.filename));
|
res.setHeader('Content-Disposition', contentDisposition(streamInfo.filename));
|
||||||
|
|
||||||
pipe(audio, audioInput, shutdown);
|
audio.on('error', shutdown);
|
||||||
|
audioInput.on('error', shutdown);
|
||||||
|
audio.pipe(audioInput);
|
||||||
pipe(muxOutput, res, shutdown);
|
pipe(muxOutput, res, shutdown);
|
||||||
|
|
||||||
process.on('close', shutdown);
|
process.on('close', shutdown);
|
||||||
|
Reference in New Issue
Block a user