Class UDPSinkSettings
- Namespace
- VisioForge.Core.Types.X.Sinks
- Assembly
- VisioForge.Core.dll
UDP sink settings for streaming data over UDP to a single destination.
public class UDPSinkSettings : UDPSinkSettingsBase, IMediaBlockSettingsInheritance
Implements
Inherited Members
Properties
Host
The host/IP/Multicast group to send the packets to. Defaults to "localhost".
public string Host { get; set; }Property Value
Port
The port to send the packets to. Defaults to 5004.
public int Port { get; set; }Property Value
Methods
CreateBlock()
Creates the media block instance for UDP sink.
public override MediaBlock CreateBlock()Returns
- MediaBlock
-
A new instance of VisioForge.Core.MediaBlocks.Sinks.UDPSinkBlock configured with these settings.
ToUrl()
Constructs a UDP URL from the current Host and Port properties.
public string ToUrl()Returns
- string
-
A string in the format "udp://host:port".
TryParseUrl(string)
Parses a UDP URL and updates the Host and Port properties.
public bool TryParseUrl(string url)Parameters
urlstring-
The URL to parse, expected in the format "udp://host:port".
Returns
- bool
-
trueif the URL was successfully parsed; otherwise,false.