News for hackers. Stuff that matters.
Re:Show HN: Vusic – A Simple Web Player for Apple Music Buil... by zrules on Wednesday January 01, 2020 @09:12PM (#21932417)
This looks good and functions very nicely. However, the playhead in the progress bar moves in discreet steps. It'd be better if its movement is smoother. the playhead inside https://beta.music.apple.com unfortunately behaves the same way.
Re:Show HN: Vusic – A Simple Web Player for Apple Music Buil... by philips4350 on Thursday January 02, 2020 @12:49AM (#21933289)
Now that you point it out it does look kind of weird... Maybe be i should create a new component for the play progress which increments in very tiny scale. Thank you for the feedback!
Re:Show HN: Vusic – A Simple Web Player for Apple Music Buil... by ch_sm on Thursday January 02, 2020 @12:03PM (#21937127)
The best way I’ve found is to update the DOM in an requestAnimationFrame loop, polling the Audio Element’s currentTime, since its events don’t fire reliably.