caption-sync

v0.0.3
Simple mobile browser library for toggling vibration.
dom closed captions captions caption subtitle track accessibility

Caption sync

Closed captions events listener

npm version Known Vulnerabilities codecov XO code style npm downloads

Installation

npm i caption-sync

Node Example

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);

Credit

Brought to you by beatcaps.io

Metadata

  • MIT
  • Whatever
  • Kemal Ahmed
  • released 2/26/2021

Downloads

Maintainers