StreamSourceSequenceNode class

StreamSourceSequence — plays an ordered sequence of sources gaplessly.

Signature:

export declare class StreamSourceSequenceNode<Pins extends string> extends ProcessorMediaNode<Pins>

Extends: ProcessorMediaNode<Pins>

Methods

Method Modifiers Description

advanceNow()

Manually trigger an early cut to the next source in the sequence, at that source’s next IDR. The previous source’s frames after that IDR (in display order) are dropped.

appendSource(pin, transitionFromPrevious)

Append a source to the end of the sequence. The pin must be subscribed upstream (via subscribeToPins) for its frames to flow.

releasePreloaded(pin)

Tell the engine which pin to release on the NEXT source boundary, overriding the autopilot’s default "next-pin-from-sequence" pick for that single transition. Mirrors SSH’s releasePreloaded semantics: the client is responsible for any upstream pause/play around the release, and chooses when each held pin should advance onto the output. Pair with onPreloaded and an upstream pause() to backpressure long-lived held sources.