我得到了“错误1”,没有任何评论,作为我对索尼qx10的大多数请求的回应(最后固件3.00)。
例如:
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);
}
}我的问题是:
发布于 2015-03-13 15:08:42
要获得相机控制设置(如曝光补偿、WB模式、ISO模式)的可用性,您应该使用参数"setExposureMode“调用”程序自动“。
https://stackoverflow.com/questions/28989710
复制相似问题