ruby_onvif_client 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8eab26356c14952c85c3d6e821dd65fe11ec2a14
4
- data.tar.gz: d83677fa347fa61e3463721b49de6d94159ddc9f
3
+ metadata.gz: 7d925e54ae7230bd1dc8766dffaf93c541ab4c9b
4
+ data.tar.gz: 06e9a94fa8a168044c9bd2ec15246d01277021f1
5
5
  SHA512:
6
- metadata.gz: 5cae25ac8fd749a76cf7a21e066c1165127c9b041e69c1b2e0d00fe487e899cda2661e8a858b7f8956a7fe94a038b6bdac62e8469fdbca8223fea56105ce198b
7
- data.tar.gz: fd7185f378d9d7d18d48812b76bd83531e4b18584c42fcbd279e2a0fe2d4381700c8024db8d3713900606c655ad65790c14cecbbd1d5ea31cb43474e91dd6e74
6
+ metadata.gz: a26873aa55f1a92ac246e362f870d748c6bfe4cb45aaa9d774272e35833f1166f373245fa563e94872dfd18a71bf4f1a4bfaf1cfb2523dcb40f0f983b22116a6
7
+ data.tar.gz: ddcc37f718ed1da46818e48de4280ba6524b6997ed3a76e2e7c7c32c19bedfbda97578c724eee8274b992add0e16ce95c4cd97ee8200ae998c1039cf55d4cbb6
@@ -44,9 +44,9 @@ module ONVIF
44
44
 
45
45
  def _get_analytics xml_analytics
46
46
  {
47
- x_addr: value(xml_analytics, '//tt:XAddr'),
48
- rule_support: value(xml_analytics, '//tt:RuleSupport'),
49
- ams: value(xml_analytics, '//tt:AnalyticsModuleSupport')
47
+ x_addr: value(xml_analytics, 'tt:XAddr'),
48
+ rule_support: value(xml_analytics, 'tt:RuleSupport'),
49
+ ams: value(xml_analytics, 'tt:AnalyticsModuleSupport')
50
50
  }
51
51
  end
52
52
 
@@ -60,21 +60,21 @@ module ONVIF
60
60
  "UsernameToken", "HttpDigest", "RELToken", "SupportedEAPMethods"]
61
61
  network = {}; system = {}; security = {}
62
62
  network_keys.each do |key|
63
- network[key.underscore] = value(xml_device, '//tt:' + key) unless value(xml_device, '//tt:' + key) == ''
63
+ network[key.underscore] = value(xml_device, 'tt:Network/tt:' + key) unless value(xml_device, 'tt:Network/tt:' + key) == ''
64
64
  end
65
65
  system_keys.each do |key|
66
- system[key.underscore] = value(xml_device, '//tt:' + key) unless value(xml_device, '//tt:' + key) == ''
66
+ system[key.underscore] = value(xml_device, 'tt:System/tt:' + key) unless value(xml_device, 'tt:System/tt:' + key) == ''
67
67
  end
68
68
  security_keys.each do |key|
69
- security[key.underscore] = value(xml_device, '//tt:' + key) unless value(xml_device, '//tt:' + key) == ''
69
+ security[key.underscore] = value(xml_device, 'tt:Security/tt:' + key) unless value(xml_device, 'tt:Security/tt:' + key) == ''
70
70
  end
71
71
  return {
72
- x_addr: value(xml_device, '//tt:XAddr'),
72
+ x_addr: value(xml_device, 'tt:XAddr'),
73
73
  network: network,
74
74
  system: system,
75
75
  io: {
76
- input_connectors: value(xml_device, '//tt:InputConnectors'),
77
- relay_outputs: value(xml_device, '//tt:RelayOutputs'),
76
+ input_connectors: value(xml_device, 'tt:IO/tt:InputConnectors'),
77
+ relay_outputs: value(xml_device, 'tt:IO/tt:RelayOutputs'),
78
78
  extension: ""
79
79
  },
80
80
  security: security
@@ -83,26 +83,26 @@ module ONVIF
83
83
 
84
84
  def _get_events xml_events
85
85
  {
86
- x_addr: value(xml_events, '//tt:XAddr'),
87
- wssubscription_policy_support: value(xml_events, '//tt:WSSubscriptionPolicySupport'),
88
- wspull_point_support: value(xml_events, '//tt:WSPullPointSupport'),
89
- wspsmis: value(xml_events, '//tt:WSPausableSubscriptionManagerInterfaceSupport')
86
+ x_addr: value(xml_events, 'tt:XAddr'),
87
+ wssubscription_policy_support: value(xml_events, 'tt:WSSubscriptionPolicySupport'),
88
+ wspull_point_support: value(xml_events, 'tt:WSPullPointSupport'),
89
+ wspsmis: value(xml_events, 'tt:WSPausableSubscriptionManagerInterfaceSupport')
90
90
  }
91
91
  end
92
92
 
93
93
  def _get_imaging xml_imaging
94
94
  {
95
- x_addr: value(xml_imaging, '//tt:XAddr')
95
+ x_addr: value(xml_imaging, 'tt:XAddr')
96
96
  }
97
97
  end
98
98
 
99
99
  def _get_media xml_media
100
100
  {
101
- x_addr: value(xml_media, '//tt:XAddr'),
101
+ x_addr: value(xml_media, 'tt:XAddr'),
102
102
  streaming_capabilities: {
103
- rtp_multicast: value(xml_media, '//tt:RTPMulticast'),
104
- rtp_tcp: value(xml_media, '//tt:RTPMulticast'),
105
- rtp_rtsp_tcp: value(xml_media, '//tt:RTP_RTSP_TCP'),
103
+ rtp_multicast: value(xml_media, 'tt:StreamingCapabilities/tt:RTPMulticast'),
104
+ rtp_tcp: value(xml_media, 'tt:StreamingCapabilities/tt:RTPMulticast'),
105
+ rtp_rtsp_tcp: value(xml_media, 'tt:StreamingCapabilities/tt:RTP_RTSP_TCP'),
106
106
  extension: ""
107
107
  },
108
108
  extension: ""
@@ -110,7 +110,7 @@ module ONVIF
110
110
  end
111
111
 
112
112
  def _get_ptz xml_ptz
113
- {x_addr: value(xml_ptz, '//tt:XAddr')}
113
+ {x_addr: value(xml_ptz, 'tt:XAddr')}
114
114
  end
115
115
  end
116
116
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ruby_onvif_client'
3
- s.version = '0.1.4'
3
+ s.version = '0.1.5'
4
4
  s.date = '2013-08-07'
5
5
  s.summary = "Ruby实现的onvif客户端"
6
6
  s.description = "使用ruby实现的简单的onvif客户端"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_onvif_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - jimxl