Load and parse SRT (subtitle files) with Javascript.

  • Tech Staff

    For last years Werkstatt, I wrote a Javascript Subtitle parser that works with SRT files. (very common subtitle format).

    It first parses the SRT, into Javascript native JSON (limited to 1 language track currently, but easily extended).
    Then which ever title you want can be selected via another small JS script.
    This approach will allow future versions of Isadora to use timecode to selected the correct title. (only a new 'selection' script will need to be written)

    A demo containing the JS code in User Actors is available here.

    Also, it might be useful to know I have been creating/editing my SRT files with Aegisub