How to use the subtitle.toVttTime function in subtitle

To help you get started, we’ve selected a few subtitle examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / types / subtitle / subtitle-tests.ts View on Github external
end: 27800,
            text: 'Bla Bla Bla Bla',
            settings: 'align:middle line:90%'
        }
    ];

const srt = Subtitle.stringify(subtitles);
const vtt = Subtitle.stringifyVtt(subtitles);

const newSubtitles: Subtitle.subTitleType[] = Subtitle.resync(subtitles, 1000);

Subtitle.toMS('00:00:24,400');

Subtitle.toSrtTime(24400);

Subtitle.toVttTime(24400);

subtitle

Stream-based library for parsing and manipulating subtitles

MIT
Latest version published 2 years ago

Package Health Score

53 / 100
Full package analysis