[英]Sony remote camera API QX 10, Error 1
对于大多数对Sony qx10(最新固件3.00)的请求,我没有任何评论就得到“错误1”。
例如:
03-10 13:22:50.830: D/SimpleRemoteApi(4418): Request: {"method":"getAvailableExposureCompensation","params":[],"id":11,"version":"1.0"}
03-10 13:22:51.012: D/SimpleRemoteApi(4418): Response: {"error":[1,""],"id":11}
结果相同
但是getAvailableStillSize返回带有图像大小列表的正确响应。
另外,getAvailableFocusMode返回错误“ 40401,相机未就绪”。 这是什么意思? Liveview已启动,并且相机正在将图像发送到手机。
我的所有请求都以这种方式发送(只是示例SDK中的修改后的代码):
public JSONObject getSomeParameter() throws IOException {
String service = "camera";
try {
JSONObject requestJson =
new JSONObject().put("method", "getSomeParameter") //
.put("params", new JSONArray()).put("id", id()) //
.put("version", "1.0");
String url = findActionListUrl(service) + "/" + service;
log("Request: " + requestJson.toString());
String responseJson = SimpleHttpClient.httpPost(url, requestJson.toString());
log("Response: " + responseJson);
return new JSONObject(responseJson);
} catch (JSONException e) {
throw new IOException(e);
}
}
我的问题是:
要获得控制相机设置(例如曝光补偿,WB模式,ISO模式)的可用性,应使用参数“ Program Auto”调用“ setExposureMode”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.