Android 索尼遥控摄像机API QX 10,错误1
对于我向索尼qx10(最新固件3.00)提出的大多数请求,我都得到了“错误1”,没有任何评论 例如:Android 索尼遥控摄像机API QX 10,错误1,android,sony-camera-api,Android,Sony Camera Api,对于我向索尼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
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}
同样的结果也出现了
- getAvailableWhiteBalance
- getAvailableIsoSpeedRate
- 获取可用的曝光补偿
要获得控制相机设置(如曝光补偿、WB模式、ISO模式)的可用性,您应使用参数“Program Auto”调用“setExposureMode”。执行“GetAvailableAlist”时是否看到这些API?否。它们不可用。据我所知,可用的API取决于摄像头状态和设置。但我不知道,我需要什么状态和设置。什么是正确的状态和设置转换顺序。
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);
}
}