Skip to content

Parsing WebVTT cue-identifiers fails #90

Open
@scottsidwell

Description

I'm dealing with the output of WebVTT files from 3rd party services, who attempt to provide speaker diarization via cue identifiers.

This means we have a WebVTT file that looks like:

Speaker 1
00:02:00.000 --> 00:03:00.000
Hey there

Speaker 2
00:04:00.000 --> 00:05:00.000
Hi

Currently, this fails because we expect to parse a timestamp (instead of a cue id)
https://github.com/gsantiago/subtitle.js/blob/master/src/Parser.ts#L125-L127

How hard do you think adding support for this work be / do you have any pointers to help me get started?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions