CmafWebVttOutputSettings interface

Settings for a CMAF WebVTT Output see NorskOutput.cmafWebVtt()

Signature:

export interface CmafWebVttOutputSettings extends SinkNodeSettings<CmafWebVttOutputNode>

Properties

Property Type Description

delayOutputMs?

number

(Optional) By default, the program date time or event start time will be based on the timestamp of the first video packet received by Norsk in a stream.

Assuming minimal latency in Norsk itself, this behaviour is fine - but encodes and composition or synchronisation with external streams can then result in players requesting segments that don’t exist yet

delayOutputMs can be used to push the timestamp forwards so that players can calculate the edge of the stream accurately.

This number should match the delayOutputMs of other streams which will be served within the same master playlist

segmentDurationSeconds

number

The target segment duration in seconds, Norsk will split subtitles over multiple segments in a compliant manner if necessary

sessionId?

string

(Optional) Optionally supply a string that will be inserted into the path structure for segments published in this stream

This is useful for stream restarts or republishing when duplicate segment IDs would be generated causing problems with cacheing directives