From 7633b885189ee4cc6efa66f5ea1779f74f89c0fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=81=20=E4=BB=BB?= Date: Sat, 17 Jan 2026 16:13:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=B7=E5=BA=B7=E6=91=84=E5=83=8F=E5=A4=B4?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=B5=81=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FireManagement/FireManagementApp.cs | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/OpenAuth.App/ServiceApp/FireManagement/FireManagementApp.cs b/OpenAuth.App/ServiceApp/FireManagement/FireManagementApp.cs index 685c1c0..e016ba4 100644 --- a/OpenAuth.App/ServiceApp/FireManagement/FireManagementApp.cs +++ b/OpenAuth.App/ServiceApp/FireManagement/FireManagementApp.cs @@ -1583,6 +1583,42 @@ namespace OpenAuth.App.ServiceApp.FireManagement return "fail"; } + /// + /// 获取单个设备的视频流--通用 + /// + /// 设备唯一标识吗 + /// 设备地址(例:192.168.10.163) + /// + /// + /// 设备端口(例1443) + /// + /// + [HttpPost] + [AllowAnonymous] + public string GetPreviewURL(string cameraIndexCode,string url,string appkey,string appsecret,int port, string protocol) + { + HttpUtillib.SetPlatformInfo(appkey, appsecret, url, port, true); + + var obj = new + { + cameraIndexCode, + streamType = 0, + protocol = protocol, + transmode = 1, + expand = "transcode=0", + streamform = "ps" + }; + string body = JsonConvert.SerializeObject(obj); + string uri = "/artemis/api/video/v2/cameras/previewURLs"; + byte[] result = HttpUtillib.HttpPost(uri, body, 15, 1); + if (null != result) + { + return Encoding.UTF8.GetString(result); + } + + return "fail"; + } + public async Task> ListCameraWithInRange(string lng, string lat, int radius) {