StreamSwitchSmoothSettings interface
Settings for the Smooth Source Switch see NorskControl.streamSwitchSmooth()
Signature:
export interface StreamSwitchSmoothSettings<Pins extends string> extends ProcessorNodeSettings<StreamSwitchSmoothNode<Pins>>
Extends: ProcessorNodeSettings<StreamSwitchSmoothNode<Pins>>
Properties
Property | Type | Description |
---|---|---|
Pins |
(Optional) The presently active source being used to generate output for this node |
|
"aligned" | "not_aligned" |
(Optional) Alignment behaviour of the component whether to rebase all incoming streams to a common timeline Note: This will modify the timestamps, meaning that merging streams not involved in this may result in operation may result in sync issues. To avoid this, you can use NorskTransform.streamAlign() instead of relying on this component for this behaviour Note: This behaviour may be removed in a future release and replaced with something similar |
|
The constant channel layout that all output audio will be resampled to |
||
The constant framerate that all output video will be sampled to |
||
(Optional) Optionally attempt to perform the compose operation on hardware |
||
(allStreams: Map<Pins, StreamMetadata[]>) ⇒ Promise<void> |
(Optional) Callback to be called when inbound context changes on some input; presence of an input means that media has arrived and is ready to switch immediately |
|
(message: string, inputPin?: Pins) ⇒ void |
(Optional) Callback which will be called if a switch request cannot be fulfilled |
|
(inputPin: Pins) ⇒ void |
(Optional) Callback which will be called a transition has succesfully completed for a requested switch, i.e. the new source is now showing. Note that if additional transitions are triggered when a transition is already in progress, a notification may only be given for the last transition to finish. |
|
The constant resolution that all output video will be scaled to |
||
string |
The source name given to the output of this node |
|
(Optional) The sample format of the built outgoing stream (Defaults to FLTP) |
||
The constant samplerate that all output audio will be resampled to |
||
number |
(Optional) How many milliseconds to use for the fade operation between two sources |