I i want to make a radio station bot how can i cache the audio stream so that its not downloading and encodeing it for each instance?
Lets pretend something like this:
let cachedAudioStream = cacheArbitraryInput('http://philae.shoutca.st:8950/live', {});
then for every instance outgoing:
connection1.playArbitraryInput(cachedAudioStream, { volume: 0.5 });
connection2.playArbitraryInput(cachedAudioStream, { volume: 0.8 });
connection3.playArbitraryInput(cachedAudioStream, { volume: 1 });
Can this be done?
StackOverflow:
https://stackoverflow.com/questions/59919510/discord-js-playing-audio-on-multiple-servers
If you need help with discord.js installation or usage, please go to the discord.js Discord server instead:
https://discord.gg/bRCvFy9
This issue tracker is only for bug reports and enhancement suggestions.
You likely won't receive any basic help here.
And if you already posted your question on StackOverflow less than an hour ago, why are you posting it here?
And if you already posted your question on StackOverflow less than an hour ago, why are you posting it here?
Why not?
Most helpful comment
And if you already posted your question on StackOverflow less than an hour ago, why are you posting it here?