Open nnsdev opened 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
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
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
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.