Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Client/Camera/Camera.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -81,6 +82,17 @@ public async Task<bool> Testing(Action<Exception> 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;
Expand Down