You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
TermApp/app/src/main/cpp/netcamera/YuShiCtrl.cpp

47 lines
828 B
C++

//
// Created by Matthew on 2025/3/4.
//
#include "YuShiCtrl.h"
#include "httpclient.h"
YuShiCtrl::~YuShiCtrl()
{
}
bool YuShiCtrl::SetOsd()
{
// /LAPI/V1.0/Channels/<ID>/Media/OSDs/Contents
}
void YuShiCtrl::EnableOsd(bool enable)
{
return false;
}
std::string GetStreamingUrl(uint8_t channel)
{
// /LAPI/V1.0/Channels/<ID>/Media/Video/Streams/<ID>/LiveStreamURL?TransType=<Tran
// sType>&TransProtocol=<TransProtocol>
return "";
}
bool YuShiCtrl::UpdateTime(time_t ts)
{
/LAPI/V1.0/System/Time
Json::Value jsonData(Json::objectValue);
jsonData["TimeZone"] = "GMT+08:00";
jsonData["DeviceTime"] = ts;
jsonData["DateFormat"] = 0; // YYYY-MM-DD
jsonData["HourFormat"] = 1; // 24H
return false;
}
bool YuShiCtrl::TakePhoto(std::vector<uint8_t>& img)
{
return false;
}