eritislami / evobot

πŸ€– EvoBot is a Discord Music Bot built with TypeScript + Discord.js, includes Docker builds & localization in 20+ languages
MIT License
1.85k stars 2.01k forks source link

Radio Streaming System #722

Closed rexjohannes closed 3 years ago

rexjohannes commented 3 years ago

Is your feature request related to a problem? Please describe. I want an Bot that can play Music an Radio too. Describe the solution you'd like An Radio System with an list of radios and custom url support as arg or an radio list api Describe alternatives you've considered / Additional context /

SugarD-x commented 3 years ago

Pull request #711 does allow for MP3 streaming, but from my personal testing, it doesn't support things like ShoutCast streams, (including ShoutCast v2). It appears to be specific to just MP3 file types with that exact extension because of the way the code is written.

If someone has a solution for internet radio stream support, (especially ShoutCast v2), I'd love to add that to my bot too. πŸ˜ƒ

rexjohannes commented 3 years ago

connection.play("linktomp3orshoutcasturl")

Edit:

Docs can be found here:

https://discord.js.org/#/docs/main/master/topics/voice

you need ffmpeg or ffmpeg-static installed via npm

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

SrIzan10 commented 3 years ago

Tried with m3u streams. It doesn't work. I used the m3u package from npm.

wolf-yuan-6115 commented 3 years ago

@SrIzan10 do u mean m3u8?

SrIzan10 commented 3 years ago

No, just m3u.

Saturday, 7 August 2021, 1:39 PM +0200 from Wolf yuan @.>: @. do u mean m3u8?

β€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub , or unsubscribe .

SugarD-x commented 3 years ago

Same issue. It only seems to handle .mp3 extensions, which is all it was written for. Most internet radio streams tend to rely on playlist extensions so the player reads the listen URL through it, and that usually doesn't have an extension. It works great with .mp3, though.

SrIzan10 commented 3 years ago

Yeah, but normally it’s not the most common file format for radio stations.

Saturday, 7 August 2021, 1:59 PM +0200 from SugarD-x @.***>:

Same issue. It only seems to handle .mp3 extensions, which is all it was written for. Most internet radio streams tend to rely on playlist extensions so the player reads the listen URL through it, and that usually doesn't have an extension. It works great with .mp3, though. β€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub , or unsubscribe .