StreamSubtitlesInputNode.sendChunk() method

Send a WebVTT subtitle cue (or multiple cues) given as a WebVTT document, i.e. containing "WEBVTT" and time ranges/cue text. Timestamps are relative to real time, according to the first timestamp sent. It is recommended to send an empty message on initialisation to anchor these timestamps.

Signature:

sendChunk(chunk: string): void;

Parameters

Parameter Type Description

chunk

string

Returns:

void