StreamSubtitlesInputNode.sendTtml() method
Send a TTML subtitling document.
This may be an individual cue or ISD, or a segment comprising multiple cues. A timestamp and corresponding value for the media timeline is required, as in DVB TTML, for an individual cue the timestamp of the document can simply be the cue timestamp (cue is untimed or starts at 00:00:00), or an offset can be calculated to use an existing document (fragment) without modification.
The timestamp is a Norsk internal timestamp, which may be observed (and perhaps offset calculated) from some other node, such as a stream timestamp report node.
Signature:
sendTtml(cue: {
startTimestamp: Interval;
endTimestamp: Interval;
mediatime_ms: number;
document: string;
}): void;