johndyer/mediaelement — Issue #306: Timings at "09"
Author: backpfeifengesicht
Created: 2011-11-17 14:51:00+00:00
State: open

Hi,
I guess I just found an issue when I wanted to display subtitles at position 00:00:09. The text was displayed at apparently random times suddenly.

I found out that in the utility function `timeCodeToSeconds` (src/js/me-utility.js, lines 70-72) you are using `parseInt` to force integers. There the string `"09"` was formatted to `0`. I am not a deep JS expert, but I fixed it by using `tc_array[0] * 1` instead.

Regards,
Finn