You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ Call `GetServicesAsync` to retrieve a list of all services supported by the devi
105
105
varservices=awaitclient.GetServicesAsync();
106
106
```
107
107
108
-
Some operations require the device to support a service. For instance, to retrieve the stream URI the device must support the media service. To check whether the ONVIF service is supported by the device, call:
108
+
Some operations require the device to support a service. For instance, to retrieve the stream URI the device must support the media service. To check whether the Onvif service is supported by the device, call:
109
109
```cs
110
110
if (services.Service.FirstOrDefault(x=>x.Namespace==OnvifServices.MEDIA) !=null)
First add a reference to the DLL that implements the clients (e.g. `SharpOnvifClient.DeviceMgmt`). Create the authentication behavior:
152
+
First add a reference to the DLL that implements the clients (e.g. `SharpOnvifClient.DeviceMgmt`). Add the usings:
153
153
```cs
154
-
varauth=newDigestBehavior("admin", "password");
154
+
usingSharpOnvifClient;
155
155
```
156
156
Create the Onvif client and set the authentication behavior using `SetOnvifAuthentication` extension method from `SharpOnvifClient.OnvifAuthenticationExtensions` before you use it:
0 commit comments