File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
# onvif4go
2
2
3
+ ```
3
4
device := onvif4go.NewOnvifDevice("192.168.1.1:80")
4
5
device.Auth("admin", "1234456")
5
6
err := device.Initialize()
6
7
...
8
+ ```
7
9
10
+ ```
8
11
deviceInformation, err := device.Device.GetDeviceInformation()
9
12
...
13
+ ```
10
14
15
+ ```
11
16
err := device.Media.AddVideoAnalyticsConfiguration("Profile_0", "VideoAnalyticsConfiguration_000")
12
17
...
18
+ ```
13
19
20
+ ```
14
21
response := CustomDeviceResponse{}
15
22
err := device.Device.Call(CustomDeviceRequest{}, &response)
16
23
...
24
+ ```
17
25
26
+ ```
18
27
response := trt.GetProfilesResponse{}
19
28
media, ok := device.On("media")
20
29
err := media.Call(trt.GetProfiles{}, &response)
21
30
...
31
+ ```
22
32
33
+ ```
23
34
response := onvif4go.XmlNode{}
24
35
analytics, _ := device.On("analytics")
25
36
err = analytics.Call(onvif4go.XmlNode{
@@ -30,4 +41,5 @@ err = analytics.Call(onvif4go.XmlNode{
30
41
Text: "VideoAnalyticsConfiguration_000",
31
42
},
32
43
},
33
- }, &response)
44
+ }, &response)
45
+ ```
You can’t perform that action at this time.
0 commit comments