Class: WebVTT

.thumbnail.WebVTT(webVTTPath)

Class that handles webvtt files.

Constructor

new WebVTT(webVTTPath)

Build a webVTT object, ready to be filled with webVTT related data.
Parameters:
Name Type Description
webVTTPath string Path to the webVTT file.
Author:
Source:

Methods

readFile() → {Promise}

Load the webVTT file and include the manifest into the object.
Parameters:
Type Description
callback Function to be executed subsequently.
Source:
Returns:
Promise that is resolved when manifest file was read in successfully.
Type
Promise