Home > Net >  [for] about hikvision secondary development of video server SDK, adopt WinForm c #, realize landing
[for] about hikvision secondary development of video server SDK, adopt WinForm c #, realize landing

Time:11-06

description:


About hikvision secondary development of video server SDK problem, hope to realize the function of the system are as follows: equipment and preview function, recording download kinetic energy, video playback,


Now the question is, can realize landing equipment and preview, but when I put the SDK for win32 cannot be recorded,




At first I was developed by using 64 - bit SDK, compiled can log on and preview, can also be recorded, but after the SDK for 32 bit, cannot be recorded,


As to why it must use the win32 SDK, because I'm using the MediaPlayer controls to play back the sea of kang to record video, also have to install a MediaPlayer hai kang plug-in, after I found after compiled using SDK win64 a couldn't replay, I can only change back to the win32 SDK, and then can't recording!!!!!!


I have two days and two nights did not find what problem, now head is bigger, so want to consult the bosses,


# # as shown in figure: an error occurred when click start recording,





# # to return error code: public const int NET_DVR_ORDER_ERROR=12;//call bad sequence






I got off the breakpoint debugging
But the incoming values of two parameters (m_lRealHandle sVideoFileName) is to
CHCNetSDK.NET _DVR_SaveRealData (m_lRealHandle, sVideoFileName) should return value to true


Now CHCNetSDK.NET _DVR_SaveRealData (m_lRealHandle sVideoFileName)
the return value is false

According to the error code know bad sequence is to call, but I can't imagine the wrong where, before win64 a SDK library file is no problem





Click start recording after although complains, seemingly local still can download files, but the file size of 0 bytes!




Equipment models: DS - 6701 HFH/V

Equipment appearance:



Bosses, if you can answer really grateful!

CodePudding user response:

Problems have been found, is the lack of a dynamic link file

CodePudding user response:

I also encountered this kind of circumstance, can you tell me what is the lack of dynamic link file
  •  Tags:  
  • C#