WebAPI 支持摄像头启停控制、码流切换、审计日志的提供
This commit is contained in:
@@ -43,6 +43,9 @@ public class VideoSourceConfig
|
||||
/// <summary> 默认码流类型(0 = 主码流(高清),1 = 子码流(低带宽)) </summary>
|
||||
public int StreamType { get; set; } = 0;
|
||||
|
||||
/// <summary> Rtsp 播放路径 </summary>
|
||||
public string RtspPath { get; set; } = string.Empty;
|
||||
|
||||
/// <summary> 传输协议(TCP/UDP/Multicast,默认 TCP 保证可靠性) </summary>
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public TransportProtocol Transport { get; set; } = TransportProtocol.Tcp;
|
||||
@@ -132,6 +135,7 @@ public class VideoSourceConfig
|
||||
Password = this.Password,
|
||||
RenderHandle = this.RenderHandle,
|
||||
ChannelIndex = this.ChannelIndex,
|
||||
RtspPath = this.RtspPath,
|
||||
StreamType = this.StreamType,
|
||||
Transport = this.Transport,
|
||||
ConnectionTimeoutMs = this.ConnectionTimeoutMs
|
||||
|
||||
Reference in New Issue
Block a user