Keeping a readable stream open if source fails

11 views
Skip to first unread message

Damon Black

unread,
Jul 24, 2017, 9:26:58 AM7/24/17
to nodejs
Hi,

I'm trying to record an audio stream to a local file, so readable to writable stream, no problem. However if the audio source dies i want to keep the file (ws) from closing it can simply append data to the existing file.

Everything i've tried (new readable, request, fetch, fluent-ffmpeg) immediately kills the script when the source stream fails. I've tried {end: false} on the writable but i think it's the readable that dies.

So is there away to keep a readable stream open if its source fails?

Thanks
D
Reply all
Reply to author
Forward
0 new messages