RedSparr0w / CSGO_Music_Player

CS:GO Music Player | Pause/Lower volume when alive, Start again once player is dead
GNU General Public License v3.0
10 stars 2 forks source link

Spotify Support #3

Open nnsdev opened 7 years ago

nnsdev commented 7 years ago

It would be great if we had Spotify support.

You could use this package here: https://github.com/thelinmichael/spotify-web-api-node and let the user enter his information, you could display the current and upcoming songs and pause/start songs.

isonet commented 7 years ago

Nice project!

An alternative could be to use the media keys. This would support pretty much any audio player. An example on how this could be done (with robot.js): mediacontrol

RedSparr0w commented 7 years ago

It seems spotify does not support playing music via webapi 😞 They only allow playing 30s clips of songs, and does not look like this is going to change anytime soon. Are there any alternatives?

@isonet I cant seem to get robotjs working within electron , will have another try on my main computer later though. npm rebuild --runtime=electron --target=1.4.13 --disturl=https://atom.io/download/atom-shell --abi=48

RedSparr0w commented 7 years ago

Although we could possibly just load play.spotify.com directly into the main window and inject some javascript then send commands from the main.js process