Class LiveSourceSwitchSettings
- Namespace
- VisioForge.Core.LiveSourceSwitch
- Assembly
- VisioForge.Core.dll
Configuration settings for the Live Source Switch block.
public class LiveSourceSwitchSettingsInheritance
Inherited Members
Remarks
This class contains all parameters needed to initialize a live source switching session, including video dimensions, frame rate, audio configuration, input limits, and synchronization options for fast, seamless source switching.
Constructors
LiveSourceSwitchSettings(int, int, VideoFrameRate)
Initializes a new instance of the VisioForge.Core.LiveSourceSwitch.LiveSourceSwitchSettings class.
public LiveSourceSwitchSettings(int width, int height, VideoFrameRate frameRate)Parameters
widthint-
The output video width in pixels.
heightint-
The output video height in pixels.
frameRateVideoFrameRate-
The output video frame rate.
Remarks
Video dimensions and frame rate are immutable after construction. Audio settings and input limits can be modified before passing to the switch block.
Properties
AudioChannels
Gets or sets the number of audio channels.
public int AudioChannels { get; set; }Property Value
AudioFormat
Gets or sets the audio sample format.
public AudioFormatX AudioFormat { get; set; }Property Value
AudioSampleRate
Gets or sets the audio sample rate in Hz.
public int AudioSampleRate { get; set; }Property Value
AudioStream
Gets or sets a value indicating whether audio stream is enabled.
public bool AudioStream { get; set; }Property Value
CacheBuffers
Gets or sets a value indicating whether the active pad caches buffers to avoid missing frames when the pad is reactivated. Default is true for smoother switching.
public bool CacheBuffers { get; set; }Property Value
DropBackwards
Gets or sets a value indicating whether buffers that go backwards relative to the last output buffer should be dropped. Default is true to avoid visual glitches.
public bool DropBackwards { get; set; }Property Value
MaxAudioInputsCount
Gets or sets the maximum number of audio inputs that can be registered.
public int MaxAudioInputsCount { get; set; }Property Value
MaxVideoInputsCount
Gets or sets the maximum number of video inputs that can be registered.
public int MaxVideoInputsCount { get; set; }Property Value
RandomKey
Gets the unique random key used for generating bridge connection names.
public int RandomKey { get; }Property Value
SyncMode
Gets or sets the synchronization mode for the input selector. Default is Clock for better live switching performance.
public InputSelectorSyncMode SyncMode { get; set; }Property Value
SyncStreams
Gets or sets a value indicating whether inactive streams should be synced. Default is false for faster switching without synchronization delay.
public bool SyncStreams { get; set; }Property Value
VideoFrameRate
Gets the output video frame rate.
public VideoFrameRate VideoFrameRate { get; }Property Value
VideoHeight
Gets the output video height in pixels.
public int VideoHeight { get; }Property Value
VideoStream
Gets or sets a value indicating whether video stream is enabled.
public bool VideoStream { get; set; }Property Value
VideoWidth
Gets the output video width in pixels.
public int VideoWidth { get; }