Specific example of "the MP3 seeking bug"23 replies [Last post]
I believe these are all the same bug:
There seemed to be some misinformation floating about on those threads that somehow the MP3 file was to blame. But this is definitely not the case. Here is an example page of the same MP3 file being played with two different players:
On the top is JW Player. Hit play on it, wait for it to load the whole file, and then try to slide the play-cursor around. You will see that you cannot move past the half-way point.
On the bottom is another Flash-based MP3 player. Hit play on it, wait for the loading bar to complete, and then slide the cursor around. Everything works perfectly.
Now, if you play around with the JW Player's seeking behavior, you can see exactly what is happening: clicking in the first half of the bar seeks to _twice the location you click_. So if you click a quarter of the way across the bar, you actually seek to the midpoint of the MP3. This produces another really strange behavior, which is that if you let the MP3 play to completion from where you seeked, it will still play the rest of the file correctly, but the play cursor will constantly be in the wrong place proportional to how close to the beginning you started. This is because the play cursor still _moves_ at the correct rate.
Truly bizarre! I'm guessing there must be some divide-by-two error somewhere in the seek code?