Constructor
new WebVTTThumbnail(webVTTPath)
Build a webVTT object for thumbnails, ready to be filled with thumbnail related data.
Parameters:
Name | Type | Description |
---|---|---|
webVTTPath |
string | Path to the webVTT file containing thumbnail information. |
- Source:
Extends
- WebVTT
Methods
init(num, num, sparse) → {Promise}
Read in the thumbnail manifest file (webVTT) and store its information in a machine readable form. Afterwards preload thumbnails.
Parameters:
Name | Type | Description |
---|---|---|
num |
callback | Function to be executed subsequently. |
num |
Number | Number of thumbnails that should be preloaded. If num=-1, load all. |
sparse |
boolean | If true, load the thumbnails spread over the whole video, otherwise sequentially from the beginning (for separated thumbnail images only). |
Returns:
Promise that is resolved after thumbnails were loaded successfully.
- Type
- Promise