That was just a reference Code.
I am attaching the Libraries (add ref to Lib/NETSDKCS.dll) which you can include in your WPF application & start making calls.
Here is a sample Form.
The View:
<Window x:Class="IotDesktopApp.DvrDemo"...
NETClient.StartRealPlay is a C# Wrapper for an unmanaged C/C++ function (Using the Pinvoke technique).
You can refer to this code-> HCNetSDK.cs in longchang | source code search engine
You should be able to get more details from the vendor.
Just in case if it is HikVision, then -> SDK -...
Hi Annevah,
Here is the Code to Login into the DVR and Start Streaming live Video.
private void btnLogin_Click(object sender, RoutedEventArgs e)
{
string ip = "192.168.0.240";
string port = "25001";
string userName = "admin";
string...
Hi Annevah,
Here is the Code to Login into the DVR and Start Streaming live Video.
private void btnLogin_Click(object sender, RoutedEventArgs e)
{
string ip = "192.168.0.240";
string port = "25001";
string userName = "admin";
string...
Can you try using the C# Code that contains "P invoke" Calls, for consuming C/C++ functions from below link.
HCNetSDK.cs in longchang | source code search engine
I used the funtion NET_DVR_RealPlay_V30 (After NET_DVR_Init and NET_DVR_Login_V30), to do a Live Preview.
Found helpful?
Dear All,
I am writing a Windows desktop application (x64 - C#) to embed DVR utilities by consuming Hikvision SDK for Windows.
I downloaded the SDK (Filename: Device Network SDK V5.2.3.3 (for Windows 64-bit)) from -> Hikvision Europe
I am able to Login, Play live Video, Audio.etc well, but...