Start Video Intercom

The interaction between video intercom device and software client depends on the persistent connection. The video and audio data will be sent or received via the connection to realize the video intercom.

  • Make sure you have called NET_DVR_Init to initialize the development resources.

  • Make sure you have called NET_DVR_Login_V40 to log in to device.

Figure 1 Programming Flow of Starting Video Intercom

  1. Optional: Call NET_DVR_GetDeviceAbility and set dwAbilityType to "IP_VIEW_DEV_ABILITY" (macro definition value: 0x014) to get video intercom device capability for checking the supported video intercom parameters.

    The video intercom device capability is returned in the message XML_IpViewDevAbility, and the related node is <VideoCall>.

  2. Call NET_DVR_StartRemoteConfig with NET_DVR_VIDEO_CALL_SIGNAL_PROCESS (command No.: 16032) and set lpInBuffer to NET_DVR_VIDEO_CALL_COND for enabling persistent connection to start video intercom and registering callback function (fRemoteConfigCallback) to return connection status or related data.

    The macro definition value of connection status (i.e., 0, 1, or 2) and related data (i.e., status value (1000, 1001, 1002), progress value, or data structure NET_DVR_VIDEO_CALL_PARAM) are returned by dwType and lpBuffer, respectively, in the callback function.

  3. Call NET_DVR_SendRemoteConfig, set dwDataType to "0", and set pSendBuf to NET_DVR_VIDEO_CALL_PARAM for transmitting video intercom data.
  4. Call NET_DVR_StopRemoteConfig to disable the persistent connection and stop video intercom.

Call NET_DVR_Logout and NET_DVR_Cleanup to log out of the device and release the development resources.