SinkMediaNode class

Signature:

export declare class SinkMediaNode<Pins extends string, Events extends MediaNodeStateEvents = MediaNodeStateEvents> extends MediaNodeState<Events> implements SubscribeDestination

Extends: MediaNodeState<Events>

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.