// // Created by Matthew on 2025/3/4. // #include "YuShiCtrl.h" #include "httpclient.h" YuShiCtrl::~YuShiCtrl() { } bool YuShiCtrl::SetOsd() { // /LAPI/V1.0/Channels//Media/OSDs/Contents } void YuShiCtrl::EnableOsd(bool enable) { return false; } std::string GetStreamingUrl(uint8_t channel) { // /LAPI/V1.0/Channels//Media/Video/Streams//LiveStreamURL?TransType=&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& img) { return false; }