久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Discord Music bot - 我播放的歌曲在結(jié)束前 10-20 秒停

Discord Music bot - the song i play stopped 10-20 seconds before the end so i added highWaterMark and now the song barely plays at all(Discord Music bot - 我播放的歌曲在結(jié)束前 10-20 秒停止,所以我添加了 highWaterMark,現(xiàn)在
本文介紹了Discord Music bot - 我播放的歌曲在結(jié)束前 10-20 秒停止,所以我添加了 highWaterMark,現(xiàn)在這首歌幾乎沒有播放的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

所以基本上我有 這個(gè)問題,我得到了一個(gè)解決方案";但它沒有用,所以我找到了一個(gè)修復(fù)程序,將 highWaterMark 添加到我的代碼中,以便流保持打開更長(zhǎng)時(shí)間或任何 idk,所以這就是我的代碼目前的樣子

So basically i had this issue and i got given a "solution" but it didn't work, so i found a fix and that was adding highWaterMark to my code so the stream stays open longer or whatever idk, so this is what my code looks like currently

    const dispatcher = serverQueue.connection.play(ytdl(song.url, {
        filter:"audioonly",
        highWaterMark: 1<<25 })
        .on("finish", () => {
            const shiffed = serverQueue.songs.shift();
            if (serverQueue.loop === true) {
                serverQueue.songs.push(shiffed);
            };
            play(guild, serverQueue.songs[0]);
        })
        .on("error", error => console.error(error)));
    dispatcher.setVolume(serverQueue.volume / 100);

但是現(xiàn)在我的問題是這首歌會(huì)播放大約 10 秒然后就停止了,我不知道為什么這只會(huì)讓我的問題變得更糟,因?yàn)閷?duì)于我看到的每個(gè)使用此解決方案的人來說,它都非常有效.

but now my issue is that the song will play for like 10 seconds then just stop, i have no idea why this just made my issue worse because for everyone i seen that used this solution it worked perfectly.

推薦答案

您可能想嘗試將流的類型更改為 opus :

You might want to try to change the type of the stream to opus :

serverQueue.connection.play(ytdl(song.url, { filter:"audioonly", type: 'opus' });

這篇關(guān)于Discord Music bot - 我播放的歌曲在結(jié)束前 10-20 秒停止,所以我添加了 highWaterMark,現(xiàn)在這首歌幾乎沒有播放的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

discord.js v12: How do I await for messages in a DM channel?(discord.js v12:我如何等待 DM 頻道中的消息?)
how to make my bot mention the person who gave that bot command(如何讓我的機(jī)器人提及發(fā)出該機(jī)器人命令的人)
How to fix Must use import to load ES Module discord.js(如何修復(fù)必須使用導(dǎo)入來加載 ES 模塊 discord.js)
How to list all members from a specific server?(如何列出來自特定服務(wù)器的所有成員?)
Discord bot: Fix ‘FFMPEG not found’(Discord bot:修復(fù)“找不到 FFMPEG)
Welcome message when joining discord Server using discord.js(使用 discord.js 加入 discord 服務(wù)器時(shí)的歡迎消息)
主站蜘蛛池模板: 国产亚洲精品成人av久久ww | 日韩成人精品视频 | 亚洲第一中文字幕 | 毛片高清| 最近免费日本视频在线 | 精品久久久久久久久久久久久久 | 国产目拍亚洲精品99久久精品 | 日韩av在线一区二区 | 国产午夜精品久久 | 国产免费一级片 | 天天精品在线 | 亚洲午夜精品一区二区三区他趣 | 亚洲激情av| 日韩精品一区二区三区免费观看 | 国产人成精品一区二区三 | 亚洲热在线视频 | 九九热这里 | 日本不卡高清视频 | 日韩精品一二三 | 一级黄色毛片子 | 国产在线视频一区 | 午夜精品在线观看 | 91综合在线观看 | 综合亚洲视频 | 一区二区三区视频在线观看 | 特黄毛片 | 中文字幕日韩一区 | 久久国产精品一区二区三区 | 无码一区二区三区视频 | 国产成人a亚洲精品 | 国产精品一区二区三区在线播放 | 福利视频一区二区三区 | 日韩亚洲欧美一区 | 91视频大全 | 欧美日韩精品一区二区三区四区 | 欧美久久精品一级黑人c片 91免费在线视频 | 国产午夜精品一区二区三区嫩草 | 成人永久免费视频 | 国产视频久久 | 成人免费高清 | 欧洲免费视频 |