Bewerken

Delen via


KSPROPERTY_NETWORKCAMERACONTROL_NTPINFO_HEADER structure (ksmedia.h)

The KSPROPERTY_NETWORKCAMERACONTROL_NTPINFO_HEADER structure contains a NTP-specific payload that is used to set or disable an NTP server on a Onvif protocol camera.

Syntax

typedef struct {
  ULONG                                        Size;
  KSPROPERTY_NETWORKCAMERACONTROL_NTPINFO_TYPE Type;
} KSPROPERTY_NETWORKCAMERACONTROL_NTPINFO_HEADER, *PKSPROPERTY_NETWORKCAMERACONTROL_NTPINFO_HEADER;

Members

Size

The size of the NTP-specific payload.

Type

Contains one of the values from the KSPROPERTY_NETWORKCAMERACONTROL_NTPINFO_TYPE enumeration.

Remarks

This command will be used to set or disable an NTP server on the Onvif protocol camera. The app can choose to configure the camera to use the same NTP server as is used by the local machine (for example, the Windows device that is controlling the camera.) It can also be used to configure the camera to use a custom NTP server.

The local PC's NTP server entry is found by parsing the registry value at SYSTEM\CurrentControlSet\Services\W32Time\Parameters\. Apps can scan the space-separated registry value for the most optimal server to set on the camera.

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004
Header ksmedia.h (include Ksmedia.h)

See also

KSPROPERTY_NETWORKCAMERACONTROL_EVENTTOPICS_XML

KSPROPERTY_NETWORKCAMERACONTROL_METADATA

KSPROPERTYSETID_NetworkCameraControl

KSPROPERTY_NETWORKCAMERACONTROL_NTP

KSPROPERTY_NETWORKCAMERACONTROL_URI

KSPROPERTY_NETWORKCAMERACONTROL_EVENT_INFO

KSPROPERTY_NETWORKCAMERACONTROL_METADATA_INFO

KSPROPERTY_NETWORKCAMERACONTROL_NTPINFO_TYPE

KSPROPERTY_NETWORKCAMERACONTROL_PROPERTY