StreamSwitchSmoothNode.silence() method
Park the switch in a silent state and forget all internal clock and audio-transition bookkeeping. The next switchSource will be processed as a cold-start switch — the new pin’s first emitted frame becomes the new PTS baseline rather than being interpreted as a continuation of the previously-active source’s timeline.
Use this when the switch is being parked between consumer windows — e.g. when an HSS downstream is routing to a sibling switch and this switch’s output is not on the wire. Without silence, the switch’s compose chain retains latestPts etc. from its previous activeSource; when it later resumes for an anchored cross-mode handoff, that stale anchor collides with the new pin’s intended one and produces a multi-second forward jump that downstream encoders / muxers report as a timestamp discontinuity.
After this call: no output frames flow until a subsequent switchSource or releasePreloaded. The switch remains subscribed to its inputs — no upstream teardown.
Signature:
silence(): Promise<void>;
Returns:
Promise<void>