Switch Scene

A scene contains the configuration information of video wall, such as window size, position, window division mode, decoding sources, and so on. You can add different scenes or save the views displayed on video wall as scenes, and then, you call the configured scenes and switch scenes to easily view the required videos on the video wall.

Figure 1 API Calling Flow of Switching Scene

  1. Call NET_DVR_SetDeviceConfig with "NET_DVR_SET_VW_SCENE_PARAM" (command No.: 1747), set lpInBuffer to the structure NET_DVR_VIDEO_WALL_INFO, and set lpInParamBuffer to the structure NET_DVR_WALLSCENECFG for adding a scene.
  2. Perform one of the following operations to set the scene.
  3. Optional: Call NET_DVR_GetDeviceConfig with "NET_DVR_GET_CURRENT_SCENE" (command No.: 1745) and set lpInBuffer to a 4-byte scene No. for getting the information of the current scene.

    The scene information is returned in the structure NET_DVR_VIDEO_WALL_INFO by lpOutBuffer.

  4. Optional: Call NET_DVR_RemoteControl with "NET_DVR_SCENE_CONTROL" (command No.: 1744) and set lpInBuffer to the structure NET_DVR_SCENE_CONTROL_INFO for deleting the scene.
    Note:

    The parameter dwCmd in the structure NET_DVR_SCENE_CONTROL_INFO should be set to 5.

  5. Call NET_DVR_RemoteControl with "NET_DVR_SCENE_CONTROL" (command No.: 1744) and set lpInBuffer to the structure NET_DVR_SCENE_CONTROL_INFOfor switching the scenes.
    Note:

    The parameter dwCmd in the structure NET_DVR_SCENE_CONTROL_INFO should be set to 1 or 3.

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