Class AppBridgeVideoSourceSettings
- Namespace
- VisioForge.Core.Types.X.Bridge
- Assembly
- VisioForge.Core.dll
Settings for AppBridge video source block. This source uses GStreamer's appsrc element to receive video buffers directly from a linked AppBridge video sink in another pipeline.
public class AppBridgeVideoSourceSettingsInheritance
Inherited Members
Constructors
AppBridgeVideoSourceSettings(string, VideoFrameInfoX)
Initializes a new instance of the VisioForge.Core.Types.X.Bridge.AppBridgeVideoSourceSettings class.
public AppBridgeVideoSourceSettings(string channel, VideoFrameInfoX info)Parameters
channelstring-
The channel name for matching with a sink.
infoVideoFrameInfoX-
Video format information (required for caps).
Properties
Channel
Gets the channel name used to match this source with a corresponding sink. Sinks and sources with the same channel name are automatically linked. For security, use VisioForge.Core.Types.X.Bridge.AppBridgeVideoSourceSettings.GenerateUniqueChannel(System.String) to create unpredictable channel names.
public string Channel { get; }Property Value
DoTimestamp
Gets or sets whether appsrc should apply timestamps to buffers. CRITICAL: Set to false to preserve original timestamps from the source pipeline. If true, appsrc will overwrite timestamps which breaks synchronization. Default is false.
public bool DoTimestamp { get; set; }Property Value
Info
Gets or sets the video format information. This is required for appsrc caps negotiation.
public VideoFrameInfoX Info { get; set; }Property Value
IsLive
Gets or sets whether this is a live source. For live streaming scenarios (like Decklink output), this should be true. Default is true.
public bool IsLive { get; set; }Property Value
MaxBuffers
Gets or sets the maximum number of buffers to queue in the appsrc. Default is 5. Set to 0 for unlimited.
public ulong MaxBuffers { get; set; }Property Value
MaxTime
Gets or sets the maximum time in nanoseconds to queue in the appsrc. Default is 500ms (500,000,000 ns). Set to 0 for unlimited.
public ulong MaxTime { 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.