subtitle.js icon indicating copy to clipboard operation
subtitle.js copied to clipboard

Add support for identifers

Open gsantiago opened this issue 4 years ago • 2 comments

Currently, this module has not support for identifiers. It would be interesting to add support to identifiers like the examples below:

webvtt

WEBVTT

1 - Some ID here
00:00:22.230 --> 00:00:24.606
This is the first subtitle.

The caption above would be parsed to this:

{
    id: '1 - Some ID here',
    start: 20000,
    end: 24400,
    text: 'This is the first subtitle'
  },

The stringify should support this feature too.

gsantiago avatar Sep 12 '20 20:09 gsantiago

Hi @gsantiago any news on this little fellow? :)

danielsfirnaciuc avatar Dec 21 '20 12:12 danielsfirnaciuc

@danielsfirnaciuc nothing yet

gsantiago avatar Dec 21 '20 12:12 gsantiago