Skip to content

ONVIFEnumCamerasDiscovered

function

Delphi
function ONVIFEnumCamerasDiscovered (CameraIndex: LongInt; var CameraType: string; var CameraONVIFUrl: string): Boolean;
C++Builder
bool __fastcall ONVIFEnumCamerasDiscovered(System::LongInt CameraIndex, System::UnicodeString &CameraType, System::UnicodeString &CameraONVIFUrl);
C#
public bool ONVIFEnumCamerasDiscovered(int CameraIndex, out IntPtr CameraType, out IntPtr CameraONVIFUrl);
VB.NET
Public Function ONVIFEnumCamerasDiscovered(CameraIndex As Integer, ByRef CameraType As IntPtr, ByRef CameraONVIFUrl As IntPtr) As Boolean
C++/Qt
BOOL ONVIFEnumCamerasDiscovered (int CameraIndex, byte * *CameraType, byte * *CameraONVIFUrl);

Returns the ONVIF cameras discovered: retrieves the camera type (CameraType) and the ONVIF service URL (CameraONVIFUrl) of the IP camera specified by CameraIndex, in the 0..n-1 range.

The camera count is returned each time the OnONVIFDiscoveryCompleted event occurs. Knowing the camera count is not required: invoke ONVIFEnumCamerasDiscovered starting from CameraIndex = 0, and increase CameraIndex at each call. The function returns false when CameraIndex = the number of cameras discovered.

See ONVIF Cameras Discovery.