海康摄像头增加了云台控制等

This commit is contained in:
2025-12-28 13:14:40 +08:00
parent 2ee25a4f7c
commit 231247c80f
12 changed files with 774 additions and 107 deletions

View File

@@ -0,0 +1,22 @@
using SHH.CameraSdk.HikFeatures;
namespace SHH.CameraSdk;
public class PtzControlDto
{
[JsonConverter(typeof(JsonStringEnumConverter))]
public PtzAction Action { get; set; }
/// <summary>
/// 仅用于手动模式true=停止, false=开始
/// </summary>
public bool Stop { get; set; }
public int Speed { get; set; } = 4;
/// <summary>
/// [新增] 点动耗时 (毫秒)
/// 如果此值 > 0则忽略 Stop 参数,执行 "开始 -> 等待 -> 停止" 的原子操作
/// </summary>
public int Duration { get; set; } = 0;
}