Skip to content

onclue is never called if the vtt file does not end with 2 blank lines #391

@evs-jjam

Description

@evs-jjam

vtt.js/lib/vtt.js

Line 1286 in 42ca104

self.oncue && self.oncue(self.cue);

self.oncue is never called if the last line is a single blank line instead of two.

A workaround I found is to add a couple of extra blank lines systematically as this does not seem to cause any undesired side effects but that feels very hacky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions