Table of Contents

Class OnvifClient1

Namespace
VAST.ONVIF
Assembly
VAST.ONVIF.dll

Provides an ONVIF Profile 1 client implementation for communicating with ONVIF-compliant devices.

public class OnvifClient1 : IOnvifClient, IDisposable
Inheritance
OnvifClient1
Implements
Inherited Members

Constructors

OnvifClient1(string, string, string)

Initializes a new instance of the OnvifClient1 class.

public OnvifClient1(string uri, string username, string password)

Parameters

uri string

The URI of the ONVIF device.

username string

The username for device authentication.

password string

The password for device authentication.

Methods

Dispose()

Releases all resources used by the OnvifClient1 class, including event subscriptions and pullpoint instances.

public override void Dispose()

OpenAsync()

Connects to the ONVIF device, retrieves device information, media profiles, and streaming URIs.

public override Task OpenAsync()

Returns

Task

A task that represents the asynchronous open operation.

Exceptions

Exception

Thrown when the connection or initialization fails.

TakeSnapshot()

Takes a snapshot from the ONVIF device and returns it as a stream.

public override Task<Stream> TakeSnapshot()

Returns

Task<Stream>

A task that represents the asynchronous operation, containing the snapshot image stream.

Exceptions

Exception

Thrown when the snapshot is not supported or the request fails.

Events

Notification

Occurs when a pullpoint notification is received from the ONVIF device.

public event EventHandler Notification

Event Type

EventHandler