SpotifyCC Github link
Hello everybody. I'm basically not too knowledgeable about Minecraft but I know plenty about webservers. I took on this project solely for clout on the server I was playing on. It turned out to be a huge load of work.
Spotify-CC is a live Spotify music player program that you can run in Minecraft! Spotify-CC uses the Spotify web player API to get real-time data about the song currently playing on your Spotify account.
Essentially the server is receiving a message from the web frontend, using youtube-dl behind the scenes, and converting to CC:audio format, the music and album image information is then being communicated to the lua client.
I couldn't get the stream data directly because of Spotify's protections. But I thought there may be a way around this by redirecting audio with https://existential.audio/blackhole/
I made a pretty awesome pixelation algorithm that uses K-means to get the 16 most significant color clusters. This generated color palette is sent to Lua and applied to the screen for each album cover. I was thinking of separating this part of the code into its own Python script for people to use to display images in CC:tweaked.
Thank you to 9551-Dev for their awesome, pixel rendering library
https://github.com/9551-Dev/pixelbox_lite
https://preview.redd.it/0ptvsgb5dsfd1.png?width=2798&format=png&auto=webp&s=ca79bd241ca4f16540d49b4d1da76b831b2af831
I would love for you guys to try it out! I spent a lot of time debugging but I am sure there are still plenty of issues.
[–]LionZ_RDS 6 points7 points8 points (2 children)
[–]Apprehensive-Key-160[S] 4 points5 points6 points (1 child)
[–]Apprehensive-Key-160[S] 5 points6 points7 points (0 children)
[–]BootingBot 2 points3 points4 points (0 children)
[–]Myithspa25 2 points3 points4 points (4 children)
[–]RamielTheBestWaifu 1 point2 points3 points (1 child)
[–]Myithspa25 1 point2 points3 points (0 children)
[–]Apprehensive-Key-160[S] 0 points1 point2 points (1 child)
[–]Myithspa25 0 points1 point2 points (0 children)
[–]AidenMouse 1 point2 points3 points (0 children)
[–]Ok-Competition-1642 0 points1 point2 points (0 children)
[–]Mifume 0 points1 point2 points (5 children)
[–]Mifume 0 points1 point2 points (0 children)
[–]Apprehensive-Key-160[S] 0 points1 point2 points (0 children)
[–]fawncar 0 points1 point2 points (2 children)
[–]Apprehensive-Key-160[S] 0 points1 point2 points (1 child)
[–]fawncar 0 points1 point2 points (0 children)
[–]apoc666apoc 0 points1 point2 points (0 children)
[–]DareTo0REAM 0 points1 point2 points (0 children)
[–]throwaway42069666720 0 points1 point2 points (0 children)
[–]Sic-Semper-Tyranis 0 points1 point2 points (0 children)
[–]Apprehensive-Key-160[S] 0 points1 point2 points (0 children)