Closed smukkejohan closed 11 years ago
I'm seeing this issue as well. Seems to occur most often in Chrome (16.0.912.63). Have also seen in Safari (Version 5.1.2 (7534.52.7)). In my case, I'm using jPlayer to play mp3 files from the Twilio API. There are multiple files within the same page but we've tested with just one and also got NaN for duration.
Screenshot: https://skitch.com/colvint/gw1sw/provider-dashboard
Let me know what other debug info might be helpful and I'll be happy to post it.
I am having this issue but only on iOS so far. I should mention that this is with mp3 files.
I had a problem like this weeks ago. In my case it was due to the GET request of the music. When the header of the request doesn't have the "Content-Length", the jplayer is not able to estimate the music duration.
@dmelo thanks for the tip but the content length header is set.
My problem is because Im not allowing partial byte range requests on the server to the mp3 - this seems to stop iOS from being able to calculate the length properly (presumably because it thinks its a stream )
This has been fixed some time ago now... No matter what, the times will always show a number, or failing that, zero.
Occasionally when loading in new media the duration will be set to NaN (not a number) and thus seeking breaks.