fent / node-m3u8stream

Concatenates segments from a m3u8/dash-mpd playlist into a consumable stream.
MIT License
217 stars 54 forks source link

ERR_STREAM_PREMATURE_CLOSE after 30 seconds #95

Open felds opened 3 years ago

felds commented 3 years ago

When streaming to Discord, it hangs up after 30 seconds with the status ERR_STREAM_PREMATURE_CLOSE.

It happens right after the progress event for the 6th chunk. Messing with the function parameters changes nothing for better or for worse.

Here's a minimal demo that triggers the bug: https://gist.github.com/felds/13d7439c9ebfc96c849a1fc85cff8aa0

I'm on node v16.11.0 and these are my deps:

├── @discordjs/opus@0.5.3
├── @discordjs/voice@0.6.0
├── @types/node@16.10.3
├── discord.js@13.2.0
├── libsodium-wrappers@0.7.9
├── nodemon@2.0.13
├── sodium@3.0.2
├── ts-node@10.2.1
├── typescript@4.4.3
└── ytdl-core-discord@1.3.1