Class AppBridgeVideoSinkSettings
- Namespace
- VisioForge.Core.Types.X.Bridge
- Assembly
- VisioForge.Core.dll
Settings for AppBridge video sink block. This sink uses GStreamer's appsink element to capture video buffers and pass them directly to a linked AppBridge video source in another pipeline.
public class AppBridgeVideoSinkSettingsInheritance
Inherited Members
Constructors
AppBridgeVideoSinkSettings(string, VideoFrameInfoX)
Initializes a new instance of the VisioForge.Core.Types.X.Bridge.AppBridgeVideoSinkSettings class.
public AppBridgeVideoSinkSettings(string channel, VideoFrameInfoX info = null)Parameters
channelstring-
The channel name for matching with a source.
infoVideoFrameInfoX-
Optional video format information.
Properties
Channel
Gets the channel name used to match this sink with a corresponding source. Sinks and sources with the same channel name are automatically linked. For security, use VisioForge.Core.Types.X.Bridge.AppBridgeVideoSinkSettings.GenerateUniqueChannel(System.String) to create unpredictable channel names.
public string Channel { get; }Property Value
Drop
Gets or sets whether to drop old buffers when the queue is full. Default is true to prevent latency buildup when source is not connected.
public bool Drop { get; set; }Property Value
Info
Gets or sets the video format information. If specified, a capsfilter will be added to convert video to this format.
public VideoFrameInfoX Info { get; set; }Property Value
MaxBuffers
Gets or sets the maximum number of buffers to queue in the appsink. When this limit is reached, older buffers may be dropped if Drop is true. Default is 1 for minimal latency. Set to 0 for unlimited.
public uint MaxBuffers { get; set; }Property Value
Sync
Gets or sets whether the appsink should synchronize to the pipeline clock. For live sources like Decklink output, this should be false to let the downstream pipeline handle timing. Default is false.
public bool Sync { get; set; }Property Value
Methods
GenerateUniqueChannel(string)
Generates a unique channel name using a GUID. Use this method to create secure channel names that cannot be guessed or intercepted.
public static string GenerateUniqueChannel(string prefix = "video")Parameters
prefixstring-
Optional prefix for the channel name.
Returns
- string
-
A unique channel name.