Display Playback on Video Wall

The videos stored in remote storage devices can be dynamically decoded and displayed on the video wall.

Figure 1 API Calling Flow of Displaying Playback on Video Wall

  1. Call NET_DVR_GetDeviceConfig with "NET_DVR_GET_VIDEOWALLWINDOWPOSITION" (command No.: 1735) and set lpInBuffer to a 4-byte window No. for getting the windowing status and related information.

    The status and information are returned in the structure NET_DVR_VIDEOWALLWINDOWPOSITION by lpOutBuffer.

  2. Call NET_DVR_GetDVRConfig with "NET_DVR_WALLWINPARAM_GET" (command No.: 9006) and set lChannel to a window No. for getting the window division mode of video wall.

    The window division mode is returned in the structure NET_DVR_WALLWINPARAM by lpOutBuffer.

  3. Call NET_DVR_FindFile_V50 to remotely search for video files.
  4. Call NET_DVR_FindNextFile_V50 repeatedly to get the searched video information, such as file name, size, start and end time.
  5. Call NET_DVR_FindClose_V30 to stop searching for video files.
  6. Call NET_DVR_RemoteControl with "NET_DVR_DEC_PLAY_REMOTE_FILE" (command No.: 9027) and set lpInBuffer to the structure NET_DVR_MATRIX_DEC_REMOTE_PLAY_EX for starting decoding the video files remotely.
  7. Call NET_DVR_MatrixSetRemotePlayControl to start playback.
  8. Optional: Perform the following operation(s) after starting decoding videos and displaying playback on video wall.
    Option Description

    Control playback

    Call NET_DVR_MatrixSetRemotePlayControl to pause, resume, perform fast or slow forward, and control audio during playback.

    Get decoding status

    Call NET_DVR_MatrixGetDecChanEnable to get the dynamic decoding status (i.e., paused or resumed) of the current window.

    Set decoding status

    Call NET_DVR_MatrixSetDecChanEnable to pause or resume the dynamic decoding of the current window.

    Note:

    Before setting the decoding status, you'd better call NET_DVR_MatrixGetDecChanEnable to get the current decoding status for reference.

    Get decoding information

    Call NET_DVR_GetDeviceStatus with "NET_DVR_MATRIX_GETWINSTATUS" (command No.: 9009) and set lpInBuffer to the structure NET_DVR_WALLWIN_INFO) for getting the decoding information (e.g., stream format, frame rate, resolution, number of decoded frames) of the current window.

    The decoding information is returned in the structure NET_DVR_WALL_WIN_STATUS by lpOutBuffer.

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