Home > Net >  C # call dahua Sdk bundles DownloadByTime for less than a callback function
C # call dahua Sdk bundles DownloadByTime for less than a callback function

Time:10-03

I opened a thread in c # continuously according to the specified time call DownloadByTime capture video segment
DownloadPosCallBack can be normal in the callback function at the beginning, the whole into a video file, over a period of time video file handle can be generated (directory has a size of 0 video files), but can't enter the download progress callback function normally, also cannot download video files, has anyone come across

CodePudding user response:

Estimation is the last time the video for the callback function is not normal, lead to cannot enter to get to the new download progress callback functions, comparing to the advice of your program ever written according to develop routines, from the access device, open, end collection to save the file, see if there is a bug! At the same time contact dahua see the SDK if there is a bug, thank you

CodePudding user response:

Conflict should be file operations, the callback function DownloadPosCallBack write file locking, written release again
  •  Tags:  
  • C#
  • Related