Closed ebuzzz closed 8 years ago
@eborned sorry it's been forever on this. I'm finishing up a rewrite that should allow you to do this yourself. Thanks for your work on this, but for now I'd like to use the native event.
You should be able to do the same thing by using a reference to the player in the new build and then setting up an interval to check the current time.
The onTimeUpdate event from the browser is lagging. By using requestAnimationFrame (just like the Youtube player) the time updates are more frequent and smoother to render.
This pull request replaces the current event. For backwards compatibility, maybe an additional option or callback should be better? Another library (react-audio-player) uses the onListen event for a more frequent update.