when trying to do the simple move example, I am getting a null exception.
I tracked it down to the caps.Capabilities.PTZ is null in here:
`public static async Task CreatePTZClientAsync (string host, string username, string password)
{
var binding = CreateBinding ();
var device = await CreateDeviceClientAsync (host, username, password);
var caps = await device.GetCapabilitiesAsync (new CapabilityCategory [] { CapabilityCategory.PTZ });
var ptz = new PTZClient (binding, new EndpointAddress (new Uri (caps.Capabilities.PTZ.XAddr)));
var time_shift = await GetDeviceTimeShift (device);
ptz.ChannelFactory.Endpoint.EndpointBehaviors.Clear ();
ptz.ChannelFactory.Endpoint.EndpointBehaviors.Add (new SoapSecurityHeaderBehavior (username, password, time_shift));
// Connectivity Test
await ptz.OpenAsync ();
return ptz;
}`
I have tried in on a few of my wansview cameras and get the same on each.
Anyone have any ideas?
when trying to do the simple move example, I am getting a null exception.
I tracked it down to the caps.Capabilities.PTZ is null in here:
`public static async Task CreatePTZClientAsync (string host, string username, string password)
{
var binding = CreateBinding ();
var device = await CreateDeviceClientAsync (host, username, password);
var caps = await device.GetCapabilitiesAsync (new CapabilityCategory [] { CapabilityCategory.PTZ });
var ptz = new PTZClient (binding, new EndpointAddress (new Uri (caps.Capabilities.PTZ.XAddr)));
}`
I have tried in on a few of my wansview cameras and get the same on each.
Anyone have any ideas?