StreamSourceSequenceNode.endSequence() method

Signal that no further sources will be released onto the output. The engine ends the current active source (synthetic PreloadEnded, mirroring endCurrentSource) and then emits a terminal empty context downstream. Consumers (HLS / CMAF / SRT muxers) take that empty context as their cue to flush the last segment and tag end-of-stream cleanly.

Distinct from close(): endSequence() lets the SSQ keep running (e.g. for callers that want to observe downstream finalisation before tearing the node down). Idempotent and a no-op if a sequence-end is already in flight.

Signature:

endSequence(): Promise<void>;

Returns:

Promise<void>