Skip to content

error getting ptz #50

Description

@chuckgmthompson

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions