支持通过网页增加、删除、修改摄像头配置信息
支持摄像头配置信息中句柄的设置,并实测有效
This commit is contained in:
@@ -35,8 +35,7 @@ public class VideoSourceConfig
|
||||
public string Password { get; set; } = string.Empty;
|
||||
|
||||
/// <summary> 渲染句柄(可选):用于硬解码时直接绑定显示窗口,提升渲染性能 </summary>
|
||||
[JsonIgnore]
|
||||
public IntPtr RenderHandle { get; set; } = IntPtr.Zero;
|
||||
public long RenderHandle { get; set; }
|
||||
|
||||
/// <summary> 物理通道号(IPC 通常为 1;NVR 对应接入的摄像头通道索引) </summary>
|
||||
public int ChannelIndex { get; set; } = 1;
|
||||
@@ -44,6 +43,13 @@ public class VideoSourceConfig
|
||||
/// <summary> 默认码流类型(0 = 主码流(高清),1 = 子码流(低带宽)) </summary>
|
||||
public int StreamType { get; set; } = 0;
|
||||
|
||||
/// <summary> 关联的主板IP </summary>
|
||||
public string MainboardIp { get; set; }
|
||||
= string.Empty;
|
||||
|
||||
/// <summary>关联的主板端口</summary>
|
||||
public int MainboardPort { get; set; }
|
||||
|
||||
/// <summary> Rtsp 播放路径 </summary>
|
||||
public string RtspPath { get; set; } = string.Empty;
|
||||
|
||||
@@ -136,6 +142,8 @@ public class VideoSourceConfig
|
||||
Password = this.Password,
|
||||
RenderHandle = this.RenderHandle,
|
||||
ChannelIndex = this.ChannelIndex,
|
||||
MainboardIp = this.MainboardIp,
|
||||
MainboardPort = this.MainboardPort,
|
||||
RtspPath = this.RtspPath,
|
||||
StreamType = this.StreamType,
|
||||
Transport = this.Transport,
|
||||
|
||||
Reference in New Issue
Block a user