当前位置:网站首页>Easycvr connects with Huawei IVS platform to query the foreign domain list interface definition and use sharing

Easycvr connects with Huawei IVS platform to query the foreign domain list interface definition and use sharing

2022-06-24 01:49:00 Tsingsee green rhino video

EasyCVR As a video protocol fusion platform , It can easily connect with third-party platforms , At the same time, it can also cascade through the national standard protocol and the superior platform , As we said above EasyCVR Connecting Huawei IVS Platform testing , In this article EasyCVR Docking with Huawei IVS Interface for querying foreign domain list .

The interface is defined as follows :

//cpp code
IVS_INT32 IVS_SDK_GetExDomainList (
  IVS_INT32 iSessionID,
  const IVS_INDEX_RANGE* pIndexRange,
  IVS_CHAR** pRspXml);

Parameters to describe :

Query the foreign domain list response XML:

Examples of use :

//cpp code

IVS_INT32 iRet = IVS_FAIL;
iRet = IVS_SDK_Init();
if (IVS_SUCCEED != iRet)
{
  return 0;
}
IVS_LOGIN_INFO LoginReqInfo = {0};
LoginReqInfo.stIP.uiIPType = IP_V4;
strncpy(LoginReqInfo.stIP.cIP, "192.168.1.1", IVS_IP_LEN);
LoginReqInfo.uiPort = 9900;
strncpy(LoginReqInfo.cUserName, "Admin", IVS_NAME_LEN);
strncpy(LoginReqInfo.pPWD, "super123", IVS_PWD_LEN);

iRet = IVS_SDK_Login(&LoginReqInfo, &iSessionID);

if (IVS_SUCCEED == iRet)
{  
  IVS_INDEX_RANGE IndexRange = {0};
  IndexRange.uiFromIndex= 1;
  IndexRange.uiToIndex= 1024;

  IVS_CHAR* pRspXml = NULL;
  iRet = IVS_SDK_GetExDomainList(iSessionID, &IndexRange,&pRspXml);

  if (IVS_SUCCEED == iRet) 
  { 
    // success 
    if (NULL != pRspXml)
    {
       IVS_SDK_ReleaseBuffer(pRspXml);
       pRspXml = NULL;
    }
  }
}

We will upload the completed tests on the official website from time to time EasyCVR edition , The latest version will optimize the existing functions or problems , If you're interested , You can directly download the latest version for actual deployment testing , During the test, you can freely call the interface for secondary development , Welcome to .

原网站

版权声明
本文为[Tsingsee green rhino video]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/11/20211111113937226h.html

随机推荐