sync-cc

1.1.1 • Public • Published

sync-cc

Synchronise captions to an external video source and place in an HTML container.

This currently handles SubViewer files (.sbv) files, which must be hosted and provided to the script separately.

A quick converter from .srt to .sbv is provided to the global scope for testing purposes (srtToSbv()).

This is work in progress and not necessarily ready for other people to use yet. Please get in touch if you are interested.

instructions

import { SyncCC } from 'sync-cc';
window.syncCC = new SyncCC(document.querySelector('#captions_div'));
syncCC.load('captions_sample.sbv');

Charles Matthews 2023

Package Sidebar

Install

npm i sync-cc

Weekly Downloads

7

Version

1.1.1

License

MIT

Unpacked Size

8.84 kB

Total Files

5

Last publish

Collaborators

  • matthewscharles