海康摄像头增加了云台控制等
This commit is contained in:
22
SHH.CameraSdk/Controllers/Dto/PtzControlDto.cs
Normal file
22
SHH.CameraSdk/Controllers/Dto/PtzControlDto.cs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user