【问题标题】:How to Rotate foscam in iOS application?如何在 iOS 应用程序中旋转 foscam?
【发布时间】:2023-03-15 01:55:02
【问题描述】:

我正在研究 foscam IP 摄像头,但找不到任何旋转摄像头的方法。我成功地在我的应用程序中成功获取相机视图。我正在使用 UDP 类。这是我正在使用的代码

- (NSURL *) getURL:(NSString *)forPage {
    return [[NSURL alloc] initWithString:[[NSString alloc] initWithFormat:@"http://%@/%@user=%@&pwd=%@",self.host,forPage,self.username,self.password]];
}

-(NSURL *)getVideoStreamURL{
    return [self getURL:@"videostream.cgi?"];
}

在我的视图控制器中

[cameraWebView loadRequest:[NSURLRequest requestWithURL:[frontCameraClient getVideoStreamURL]]];

现在请指导我如何使用相机工具进行旋转

【问题讨论】:

    标签: ios ipad stream rotation ip-camera


    【解决方案1】:

    你需要的是使用decoder_control.cgi:

    Name: decoder_control.cgi
    Permission: operator 
    Syntax: /decoder_control.cgi?command=[&next_url=] 
    
    
    Parameters value description 
    
    0 up 
    1 Stop up 
    2 down 
    3 Stop down 
    4 left 
    5 Stop left 
    6 right
    7 Stop right 
    … Reserved 
    25 center 
    26 Vertical patrol 
    27 Stop vertical patrol 
    28 Horizon patrol 
    29 Stop horizon patrol 
    … Reserved 
    94 IO output high 
    95 IO output low 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-12-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-08
      • 2011-06-28
      • 1970-01-01
      相关资源
      最近更新 更多