DEV Community

loading...

Discussion on: Does anyone knows how to change current time of song correctly in JavaScript?

Collapse
antopiras89 profile image
Antonio Piras • Edited

This code is perfectly fine: playcode.io/754024/
I ran into this bug some time ago and it may be caused by one or more of the following reasons:

  1. You're trying to "seek" the track before it's loaded
  2. The headers for the file are not set correctly (stackoverflow.com/questions/521379...)
  3. Sometimes Chrome simply f****s up and it needs to be killed and restarted :)

Hope this helps.

Collapse
pavelkeyzik profile image
Pavel Keyzik Author

Thank you, Antonio! It helped me a lot and I fixed the problem by providing correct headers.