DataMaintenance
parent
7633b88518
commit
5b0ebbcc10
|
|
@ -1593,8 +1593,6 @@ namespace OpenAuth.App.ServiceApp.FireManagement
|
||||||
/// <param name="port">设备端口(例1443)</param>
|
/// <param name="port">设备端口(例1443)</param>
|
||||||
/// <param name="protocol"></param>
|
/// <param name="protocol"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPost]
|
|
||||||
[AllowAnonymous]
|
|
||||||
public string GetPreviewURL(string cameraIndexCode,string url,string appkey,string appsecret,int port, string protocol)
|
public string GetPreviewURL(string cameraIndexCode,string url,string appkey,string appsecret,int port, string protocol)
|
||||||
{
|
{
|
||||||
HttpUtillib.SetPlatformInfo(appkey, appsecret, url, port, true);
|
HttpUtillib.SetPlatformInfo(appkey, appsecret, url, port, true);
|
||||||
|
|
|
||||||
|
|
@ -650,6 +650,32 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers.FireManagement
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取单个设备的视频流--通用
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="cameraIndexCode">设备唯一标识吗</param>
|
||||||
|
/// <param name="url">设备地址(例:192.168.10.163)</param>
|
||||||
|
/// <param name="appkey"></param>
|
||||||
|
/// <param name="appsecret"></param>
|
||||||
|
/// <param name="port">设备端口(例1443)</param>
|
||||||
|
/// <param name="protocol"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpGet]
|
||||||
|
[AllowAnonymous]
|
||||||
|
public string GetPreviewURL(string cameraIndexCode, string url, string appkey, string appsecret, int port, string protocol)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return _app.GetPreviewURL(cameraIndexCode, url,appkey,appsecret,port,protocol);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
return ex.Message.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取视频流---海康平台2
|
/// 获取视频流---海康平台2
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue