增加大华驱动

This commit is contained in:
2026-01-17 19:17:49 +08:00
parent 0b4c6fe913
commit 927ba09f66
14 changed files with 162157 additions and 21 deletions

View File

@@ -126,6 +126,7 @@ public class CameraManager : IDisposable, IAsyncDisposable
// 1. 全局驱动环境预初始化
// =========================================================
HikSdkManager.Initialize();
DahuaSdkManager.Initialize();
// 标记引擎启动状态
_isEngineStarted = true;
@@ -337,6 +338,12 @@ public class CameraManager : IDisposable, IAsyncDisposable
HikSdkManager.Uninitialize();
}
catch { }
try
{
DahuaSdkManager.Uninitialize();
}
catch { }
}
finally
{
@@ -358,6 +365,7 @@ public class CameraManager : IDisposable, IAsyncDisposable
return config.Brand switch
{
DeviceBrand.HikVision => new HikVideoSource(config),
DeviceBrand.Dahua => new DahuaVideoSource(config),
// 使用模式匹配获取不匹配的值,记录详细的 DTO 上下文
_ => HandleUnsupportedBrand(config)