视频SDK新协议签入

This commit is contained in:
2026-01-15 09:31:57 +08:00
parent 3f8e42e560
commit 81580a8f55
14 changed files with 844 additions and 472 deletions

View File

@@ -17,7 +17,8 @@ public class ServiceConfig
// 2. 目标地址列表 (类型变了!)
// ==========================================
// ★★★ 修改点:从 List<string> 变为 List<ServiceEndpoint> ★★★
// ★★★ 修改点:从 List<string> 变为 List<
// > ★★★
public List<ServiceEndpoint> VideoEndpoints { get; private set; } = new List<ServiceEndpoint>();
public List<ServiceEndpoint> CommandEndpoints { get; private set; } = new List<ServiceEndpoint>();
@@ -77,6 +78,9 @@ public class ServiceConfig
// ==========================================
private static void ParseSingleUriConfig(ServiceConfig config, string rawValue)
{
// 【新增】清理可能存在的双引号,防止地址解析失败
rawValue = rawValue.Replace("\"", "");
var segments = rawValue.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
foreach (var segment in segments)