MoqOutputNode class

Signature:

export declare class MoqOutputNode extends AutoSinkMediaNode<"audio" | "video">

Extends: AutoSinkMediaNode<"audio" | "video">

Methods

Method Modifiers Description

addRelay(relay)

Dynamically add an outbound MoQT relay to this egest. The egest will spawn a relay manager that connects to relay.relayUrl and starts publishing all live tracks to it. Repeated calls with the same URL are no-ops — use first if you want to reconnect.

closeStream(connectionIndex)

Close a specific subscriber connection.

removeRelay(relayUrl)

Dynamically remove a previously-added outbound MoQT relay. The relay manager for the matching URL is asked to shut down. If no relay is currently registered for the URL the call is a no-op.