This repository has been archived by the owner on Dec 15, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(discord-bot): try to fix youtube tracks by increasing highWaterMark
- Loading branch information
6e4d69f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did you add highWaterMark to your code? Im trying to add it to mine but I cant seem to get it to work, would appreciate it if we could chat over discord or something to fix this,
6e4d69f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Spellminer, as mentioned in the ytdl-core docs (readme), you can pass options to the YTDL function. In those options, an option named
highWaterMark
will determine how much of the video download to buffer into memory. See node's docs for more.See this comment by @fent which explains how
highWaterMark
resolves this issue.