Hey, I'm currently using this code to change the value of highWaterMark in my ytdl stream for my discord bot, and it works when using ytdl-core, and used to work with discord-ytdl-core. Unfortunately, as of recent, this code no longer works, and the music will cut out in discord, but the stream will continue to run, due to highWaterMark being at 16kb's, and I'm no longer able to increase it for some reason. Here's my code:
your highWaterMark actually works for ytdl-core's stream. On top of that stream, discord-ytdl-core adds FFmpeg/Opus stream which uses the default highWaterMark
Hey, I'm currently using this code to change the value of highWaterMark in my ytdl stream for my discord bot, and it works when using ytdl-core, and used to work with discord-ytdl-core. Unfortunately, as of recent, this code no longer works, and the music will cut out in discord, but the stream will continue to run, due to highWaterMark being at 16kb's, and I'm no longer able to increase it for some reason. Here's my code: