onetune / spotify-web-helper

🎛 Control Spotify from node.js
62 stars 11 forks source link

Event For When a User Seeks #17

Closed itotallyrock closed 7 years ago

itotallyrock commented 7 years ago

It would be useful for the API to emit an event when the user seeks or the song's position changes faster than time has passed. The main feature I personally would use this for would be a custom progress bars. At the moment I would have to constantly check the position of the song to ensure it's position. While I could simply set off a simple CSS animation and only change it if the user seeks.

It doesn't seem too complicated of a feature either. A simple check during the status check to see if the length of time passed is the same as that of the song's time played.

JonnyBurger commented 7 years ago

Great idea.

PR would be welcome!

itotallyrock commented 7 years ago

closed with #28 being merged