VisionarySolutionsDecoderDriver 1.7.0
Visionary Solutions Decoder Driver
Driver to communicate with Visionary Solutions Decoders. Intended to be use with a UDP Interface. It will start polling the decoder when registered. It will stop polling when unregistered. Polling will happen every 2 seconds
Its constructor accepts an and object that implements IDgiCommunication used to connect, send messages and disconnect from the decoder.
Configure the IDgiCommunication driver accordingly to accept connectivity with the decoder.
The decoder only accepts UDP communications at port 8000.
Quick Start
Constructing the driver
Use the driver VisionarySolutionsDecoderDriver(IDgiCommunication communicationDriver) constructor by injecting a DotNetUdpClient dependency, with the relevant address and port of the decoder:
var testConfiguration = new DgiRemoteDeviceConfiguration.NetworkConfiguration
{
IpAddress = "192.168.0.134",
Port = 8000,
};
var udpClient = new DotNetUdpClient(testConfiguration);
var vsDriver = new VisionarySolutionsDecoderDriver(udpClient);
Registration
Register() the driver to start polling for updates
vsDecoderDriver.Register();
Routing
To set the decoder to a specific stream from and Encoder, call the SetEncoderIpAddress(string ipAddress) method with the desired Encoder IP Address
Example: To display feed encoded by an encoder at address "192.168.0.126". Note that hostnames are not supported.
var result = await vsDecoderDriver.SetEncoderIpAddress("192.168.0.126")
Example: To blank the video depending on the configuration in the VideoOutputWhenBlankStream property set the stream to an empty string
var result = await vsDecoderDriver.SetEncoderIpAddress("")
Un-registration
Unregister() the driver to stop polling and disconnect from the decoder at the end of the program, on when updates are no longer needed.
vsDecoderDriver.Unregister();
More information
Consult the API for Methods, Events and Properties exposed by the driver
No packages depend on VisionarySolutionsDecoderDriver.
.NET Framework 4.7
- DGI.Framework.Core (>= 1.0.0)
.NET 6.0
- DGI.Framework.Core (>= 1.0.0)
.NET 7.0
- DGI.Framework.Core (>= 1.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 1.7.0 | 1 | 2/16/2024 |