Download Local Material

You can download the local materials from the terminal according to the material No.

Make sure you have called NET_DVR_Init and NET_DVR_Login_V40 to initialize the development environment and log in to the device.

Figure 1 API Calling Flow of Downloading Local Material

  1. Call NET_DVR_StartDownload, set dwDownloadType to 14 (NET_SDK_DOWNLOAD_PUBLISH_MATERIAL), and set lpInBuffer as a four-byte material No. for starting downloading local materials.
  2. Optional: Call NET_DVR_GetDownloadState to get the downloading progress.
  3. Call NET_DVR_StopDownload to stop downloading local materials.

Call NET_DVR_Logout and NET_DVR_Cleanup to log out and release the resources.