|
|
|
@ -31,7 +31,7 @@ std::string HangYuCtrl::GetStreamingUrl(uint8_t channel)
|
|
|
|
|
snprintf(url, sizeof(url), "/Streams/%u/1/Transport", (uint32_t)channel);
|
|
|
|
|
|
|
|
|
|
std::vector<uint8_t> resData;
|
|
|
|
|
int res = DoPutRequest(url, HTTP_AUTH_TYPE_BASIC, m_userName.c_str(), m_password.c_str(), m_netHandle, "", resData);
|
|
|
|
|
int res = DoGetRequest(url, HTTP_AUTH_TYPE_BASIC, m_userName.c_str(), m_password.c_str(), m_netHandle, resData);
|
|
|
|
|
if (res != 0 || resData.empty())
|
|
|
|
|
{
|
|
|
|
|
return "";
|
|
|
|
|