In a Spotify HTML5 app (version 1.0), how do I call a function every time the current position of the player changes (models.player.position)? I mean, like a setInterval millisecond function, but in sync with the player. I've tried "change:track" and "change", those fired perfectly when the track changes and when the player pauses (respectively).
models.player.addEventListener('change:track', updateCurrentTrack);
models.player.addEventListener('change', updateStatus);
Thanks in advance and sorry for my bad English!
EDIT: A function fired every second or 500 milliseconds will be perfect.