增加云台移动、缩放、聚集、光圈、校时、重启对 AiVideo 项目的支持

This commit is contained in:
2026-03-02 13:57:10 +08:00
parent c8f25aeba5
commit 0399871467
11 changed files with 343 additions and 28 deletions

View File

@@ -4,6 +4,10 @@ namespace SHH.CameraSdk;
public class PtzControlDto
{
/// <summary> 目标设备ID </summary>
public long DeviceId { get; set; }
/// <summary> 云台动作(上/下/左/右/变焦等,对应 PtzAction 枚举) </summary>
[JsonConverter(typeof(JsonStringEnumConverter))]
public PtzAction Action { get; set; }
@@ -12,11 +16,9 @@ public class PtzControlDto
/// </summary>
public bool Stop { get; set; }
/// <summary> 控制速度1-8默认4 </summary>
public int Speed { get; set; } = 4;
/// <summary>
/// [新增] 点动耗时 (毫秒)
/// 如果此值 > 0则忽略 Stop 参数,执行 "开始 -> 等待 -> 停止" 的原子操作
/// </summary>
/// <summary> 点动模式:动作持续时长(毫秒),>0 时启用点动 </summary>
public int Duration { get; set; } = 0;
}