Closed captions events listener
npm i caption-sync
import CaptionSync from 'caption-sync'
const showCaptionFunc = function() {
// start output
}
const hideCaptionFunc = function() {
// stop output
}
const video = document.getElementById('test-video')
const captionsListener = new CaptionSync(video, showCaptionFunc, hideCaptionFunc);
Brought to you by beatcaps.io