matthieugrieger / mumbledj

A Mumble bot that plays audio fetched from various media sites.
MIT License
170 stars 59 forks source link

Flux feature #147

Closed azlux closed 8 years ago

azlux commented 8 years ago

I know you use youtube-dl, but do you think it will be possible to play a flux instead of a file ? I think it's will be great if we can add radio url into the bot. I know it's not in the current implementation way.

I'm thinking about flux from IceCast for example.

matthieugrieger commented 8 years ago

It may be possible to do streams through IceCast. Supporting radio would be a cool feature!

azlux commented 8 years ago

Just to be sure, I'm thinking about be connected to a flux to play it, not the mumbledj becoming a web radio. (IceCast was a example, it will be great if mumbledj could play any mp3/ogg flux)

matthieugrieger commented 8 years ago

Could you clarify what "connected to a flux" means, then? I'm not familiar with that terminology. I googled around but couldn't find anything.

Do you mean a stream?

azlux commented 8 years ago

Indeed, you have find the good meaning. I always speak about audio flux, but stream is the good word. Sorry for my english.

matthieugrieger commented 8 years ago

No worries!

UdoKifferbrehl commented 8 years ago

Yes, radio would be awesome (e.g. http://listen.technobase.fm/) 😍

azlux commented 8 years ago

So, after reading you code. I maybe not a go professional, but implementing this feature will break your code structure because you download and read the file downloaded after that. That is the opposite of a stream. I think I will make a separated bot for radio steam.

matthieugrieger commented 8 years ago

Yes, that is true. I'm also not sure if Gumble supports it either.

azlux commented 8 years ago

Done ! @UdoKifferbrehl @matthieugrieger https://github.com/azlux/MumbleRadioPlayer Sorry it's not in golang but in python :D But it's working well

matthieugrieger commented 8 years ago

Wow, nice!

mkody commented 8 years ago

FYI, we can have an audio stream from an Icecast source with Gumble. I've done it (and, well, I hardcoded the URL actually) through the gomumblesoundboard project. Here's my fork and the highlighted lines.

matthieugrieger commented 8 years ago

@mkody: Oh, great! Thanks.

I'll take a look at it.