diff --git a/Client/Camera/Camera.cs b/Client/Camera/Camera.cs index 87f18d5..e0b2d95 100644 --- a/Client/Camera/Camera.cs +++ b/Client/Camera/Camera.cs @@ -1,4 +1,5 @@ using Onvif.Core.Client.Common; +using Onvif.Core.Client.Device; using Onvif.Core.Client.Imaging; using Onvif.Core.Client.Media; using Onvif.Core.Client.Ptz; @@ -81,6 +82,17 @@ public async Task Testing(Action exception = null) return false; } } + + + private DeviceClient _device; + public DeviceClient Device + { + get + { + _device ??= OnvifClientFactory.CreateDeviceClientAsync(Account.Host, Account.UserName, Account.Password).Result; + return _device; + } + } private PTZClient _ptz;