|
|
@ -42,11 +42,11 @@ namespace OnvifWebServer.Controllers.Onvif |
|
|
|
/// 绝对移动
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="ip">IP地址</param>
|
|
|
|
/// <param name="pan">水平方向移动绝对点</param>
|
|
|
|
/// <param name="tilt">垂直方向移动绝对点</param>
|
|
|
|
/// <param name="zoom">变焦绝对点</param>
|
|
|
|
/// <param name="pan">水平方向移动绝对点[-1,1]</param>
|
|
|
|
/// <param name="tilt">垂直方向移动绝对点[-1,1]</param>
|
|
|
|
/// <param name="zoom">变倍绝对点[-1,1]</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpGet] |
|
|
|
[HttpPost] |
|
|
|
public async Task<bool> AbsoluteMove( |
|
|
|
[Required][DataValidation(ValidationTypes.IPv4)] string ip, |
|
|
|
[Required] float pan, [Required] float tilt, [Required] float zoom) |
|
|
@ -56,13 +56,13 @@ namespace OnvifWebServer.Controllers.Onvif |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 绝对移动
|
|
|
|
/// 相对移动
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="ip">IP地址</param>
|
|
|
|
/// <param name="pan">水平方向移动绝对点</param>
|
|
|
|
/// <param name="tilt">垂直方向移动绝对点</param>
|
|
|
|
/// <param name="zoom">变焦绝对点</param>
|
|
|
|
[HttpGet] |
|
|
|
/// <param name="pan">水平方向移动相对点[-1,1]</param>
|
|
|
|
/// <param name="tilt">垂直方向移动相对点[-1,1]</param>
|
|
|
|
/// <param name="zoom">变倍相对点[-1,1]</param>
|
|
|
|
[HttpPost] |
|
|
|
public async Task<bool> RelativeMove( |
|
|
|
[Required][DataValidation(ValidationTypes.IPv4)] string ip, |
|
|
|
[Required] float pan, [Required] float tilt, [Required] float zoom) |
|
|
@ -75,10 +75,10 @@ namespace OnvifWebServer.Controllers.Onvif |
|
|
|
/// 持续移动
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="ip">IP地址</param>
|
|
|
|
/// <param name="pan">水平方向移动绝对点</param>
|
|
|
|
/// <param name="tilt">垂直方向移动绝对点</param>
|
|
|
|
/// <param name="zoom">变焦绝对点</param>
|
|
|
|
[HttpGet] |
|
|
|
/// <param name="pan">水平方向移动速度[-1,1]</param>
|
|
|
|
/// <param name="tilt">垂直方向移动速度[-1,1]</param>
|
|
|
|
/// <param name="zoom">变倍移动速度[-1,1]</param>
|
|
|
|
[HttpPost] |
|
|
|
public async Task<bool> ContinuousMove( |
|
|
|
[Required][DataValidation(ValidationTypes.IPv4)] string ip, |
|
|
|
[Required] float pan, [Required] float tilt, [Required] float zoom) |
|
|
@ -91,7 +91,7 @@ namespace OnvifWebServer.Controllers.Onvif |
|
|
|
/// 停止移动
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="ip">IP地址</param>
|
|
|
|
[HttpGet] |
|
|
|
[HttpPost] |
|
|
|
public async Task<bool> StopMove( |
|
|
|
[Required][DataValidation(ValidationTypes.IPv4)] string ip) |
|
|
|
{ |
|
|
|