NodeSettings interface

Settings common to all media nodes

Signature:

export interface NodeSettings<T extends MediaNodeState>

Properties

Property Type Description

id?

string

(Optional) Media Node identifier. If one is not specified, a random identifier will be generated.

onClose?

() ⇒ void

(Optional) Called when the Node closes

onCreate?

(node: T) ⇒ void

(Optional) Callback to synchronously perform an action when node creation is complete (e.g. subscribe a downstream node before the first context/frame might arrive)

onEnd?

() ⇒ void

(Optional) Called when the Norsk session ends

onError?

(error: Error) ⇒ void

(Optional) Called with any errors from the Node