Radio stream don't start with inline volume

When I play a music with a different format than opus
let resource = createAudioResource(stream.stream, {
inputType: stream.type, // different "opus"
inlineVolume: true,
metadata: song
})
let resource = createAudioResource(stream.stream, {
inputType: stream.type, // different "opus"
inlineVolume: true,
metadata: song
})
and then I want to play a radio with the inline volume activated the radio never starts,
await entersState(player, AudioPlayerStatus.Playing, 5_000); //trigger an error
await entersState(player, AudioPlayerStatus.Playing, 5_000); //trigger an error
while if I play a music with the opus format, the radio starts well with the inline volume, do you have a solution? "@discordjs/voice": "^0.13.0", "discord.js": "^14.5.0", "ffmpeg-static": "^4.4.0",
5 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
duck
duck3y ago
sorry for the late response do you have either @discordjs/opus or opusscript installed? 1. the method is <VoiceConnection>.subscribe(), it's not on the player 2. they likely already have that code, given that by their wording, it sounds like they have no issues with playing opus streams
Fyphen
Fyphen3y ago
oh I'm sorry
Bouns
BounsOP3y ago
yes
Bouns
BounsOP3y ago
what i mean is that i run music with the play-dl package, it works great, and i noticed that when the format was different from "opus" it prevents the use of the inline volume to play a radio link directly. But if I reboot the bot and decide to launch the same radio with the inline volume it works great. I find this bug very strange. please i need help..
Want results from more Discord servers?
Add your server