Notice! Why can't the display/PTZ be controlled after the Hikvision SDK is packaged!
It took 2 full days to step on the pit! ! ! ! !
find problem
First of all, the Hikvision SDK has log prints, and it is all based on this to find the error (the general meaning is that the path is wrong, and the Hikvision Camera SDK is an absolute path. That is, you publish it, but there is no corresponding dll under the absolute path)
How to set the log in Hikvision SDK (C#)
You can set start() or Awke() during initialization
. If you can’t find the corresponding reference, you can check my other article:
**Unity access to Haikang camera SDK (nanny level)**https://blog.csdn .net/quailchivalrous/article/details/131323262?spm=1001.2014.3001.5502
Solve the problem
Because the plugins special folder of the unity release mechanism will put all the dlls under the hierarchy into the plugins file, the absolute path of the Haikang SDK will definitely change. Refer to this blogger for the specific description:
https://blog.csdn.net/weixin_43267233/article/details/112665345
Put the picture below (download the SDk from the official website and there will be a library file in it, then copy the HCNetSDKCom file from the library file)
and put it in Under the published Unity path (unity project_Date\Plugins\x86_64\)
Over!