Gocnak / Botnak

A Java-based IRC chat client with focus on Twitch.tv streams.
https://gocnak.github.io/Botnak
MIT License
68 stars 28 forks source link

[Feature] Local Webserver for Song Requests #9

Open Gocnak opened 10 years ago

Gocnak commented 10 years ago

Use the VLC player to handle youtube (and other websites maybe?) song requests.

NotAFile commented 9 years ago

If you want a very large library of sites youtube-dl could work. You can pass it the "-g" option and it will output the link to the actual stream. I'm not sure a large number of sites is a good thing though.

That said, nowadays VLC supports opening youtube links. It might be easier to just use the existing audio stuff to avoid pulling in another dependency. I'm not an expert on the current implementation, but it must be possible to play network streams without pulling in VLC

Gocnak commented 9 years ago

This feature is going to change into something a little bit different.

I think we can emulate a local server through Botnak, with a custom http webpage on the loopback address, where people can request the song, then Botnak communicates with the webpage through sockets, and the webpage handles embedding, playing, as well as queuing the music. The webpage sends updates through sockets back to Botnak to tell if a song is playing or not, who requested it, etc.

The problem with doing this locally is that the songlist will have to be exported somewhere, either google docs or pastebin or something.

For this reason, it's on the backburner. This seems like way too much work for me at the moment and I have more important things (Settings GUI, other new GUIs) to make and code first.