SinkMediaNode class

Signature:

export declare class SinkMediaNode<Pins extends string> extends MediaNodeState implements SubscribeDestination

Extends: MediaNodeState

Implements: SubscribeDestination

Methods

Method Modifiers Description

finalise()

permissiveSubscriptionValidation(_context)

restrictiveSubscriptionValidation(context)

sourceContextChange(responseCallback)

subscribeToPins(sources, validation, done)

Subscribe to the given sources.

This version of the function call accepts the target pins of an output and is suitable for advanced use where a node is capable of subscribing to multiple video streams and provides a means of distinguishing them via pins discarding any existing subscriptions.