|
1 | 1 | using CoreWCF; |
2 | 2 | using Microsoft.AspNetCore.Hosting.Server; |
| 3 | +using SharpOnvifCommon.PTZ; |
3 | 4 | using SharpOnvifServer; |
4 | 5 | using SharpOnvifServer.Media; |
5 | | -using System; |
6 | 6 |
|
7 | 7 | namespace OnvifService.Onvif |
8 | 8 | { |
@@ -165,23 +165,23 @@ private static PTZConfiguration GetMyPtzConfiguration() |
165 | 165 | { |
166 | 166 | XRange = new FloatRange() { Min = -1, Max = 1 }, |
167 | 167 | YRange = new FloatRange() { Min = -1, Max = 1 }, |
168 | | - URI = SharpOnvifServer.PTZ.SpacesPanTilt.POSITION_GENERIC_SPACE |
| 168 | + URI = SpacesPanTilt.POSITION_GENERIC_SPACE |
169 | 169 | }, |
170 | 170 | }, |
171 | 171 | ZoomLimits = new ZoomLimits() |
172 | 172 | { |
173 | 173 | Range = new Space1DDescription() |
174 | 174 | { |
175 | 175 | XRange = new FloatRange() { Min = 0, Max = 1 }, |
176 | | - URI = SharpOnvifServer.PTZ.SpacesZoom.POSITION_GENERIC_SPACE |
| 176 | + URI = SpacesZoom.POSITION_GENERIC_SPACE |
177 | 177 | } |
178 | 178 | }, |
179 | | - DefaultAbsolutePantTiltPositionSpace = SharpOnvifServer.PTZ.SpacesPanTilt.POSITION_GENERIC_SPACE, |
180 | | - DefaultAbsoluteZoomPositionSpace = SharpOnvifServer.PTZ.SpacesZoom.POSITION_GENERIC_SPACE, |
181 | | - DefaultRelativePanTiltTranslationSpace = SharpOnvifServer.PTZ.SpacesPanTilt.TRANSLATION_GENERIC_SPACE, |
182 | | - DefaultRelativeZoomTranslationSpace = SharpOnvifServer.PTZ.SpacesZoom.TRANSLATION_GENERIC_SPACE, |
183 | | - DefaultContinuousPanTiltVelocitySpace = SharpOnvifServer.PTZ.SpacesPanTilt.VELOCITY_GENERIC_SPACE, |
184 | | - DefaultContinuousZoomVelocitySpace = SharpOnvifServer.PTZ.SpacesZoom.VELOCITY_GENERIC_SPACE, |
| 179 | + DefaultAbsolutePantTiltPositionSpace = SpacesPanTilt.POSITION_GENERIC_SPACE, |
| 180 | + DefaultAbsoluteZoomPositionSpace = SpacesZoom.POSITION_GENERIC_SPACE, |
| 181 | + DefaultRelativePanTiltTranslationSpace = SpacesPanTilt.TRANSLATION_GENERIC_SPACE, |
| 182 | + DefaultRelativeZoomTranslationSpace = SpacesZoom.TRANSLATION_GENERIC_SPACE, |
| 183 | + DefaultContinuousPanTiltVelocitySpace = SpacesPanTilt.VELOCITY_GENERIC_SPACE, |
| 184 | + DefaultContinuousZoomVelocitySpace = SpacesZoom.VELOCITY_GENERIC_SPACE, |
185 | 185 | DefaultPTZTimeout = "PT5S", |
186 | 186 | Name = "PTZConfig", |
187 | 187 | UseCount = 1, |
|
0 commit comments