初始化Sony Camera API - 相机卡住

时间:2015-10-30 06:13:24

标签: camera sony

我似乎无法使用API​​开始拍照。我可以调用几个信息API调用,但看起来相机卡住了。这就是我正在做的事情:

  • 在RX-10 M2上启动智能遥控器(最新版本)
  • 连接相机wifi。
  • 相机显示正在连接... 并卡在那里
  • 致电http://camera_ip:/sony/camera/getEvent
  • 获取cameraStatus:未读取(下面的完整结果)
  • 调用getAvailableCameraFunction,我回来Other Function
  • 致电actTakePicture,我回来Not Available Now

如何让相机准备开始拍照?我做错了什么?

getEvent的结果:

{ "result": [ { "type": "availableApiList", "names": [ "getVersions", "getMethodTypes", "getApplicationInfo", "getAvailableApiList", "getEvent", "getSupportedCameraFunction", "startRecMode", "stopRecMode", "getCameraFunction", "getAvailableCameraFunction" ] }, { "cameraStatus": "NotReady", "type": "cameraStatus" }, null, { "type": "liveviewStatus", "liveviewStatus": false }, null, [], [], null, null, null, [], null, { "cameraFunctionCandidates": [ "Contents Transfer", "Remote Shooting" ], "type": "cameraFunction", "currentCameraFunction": "Remote Shooting" }, null, null, null, null, null, null, { "postviewImageSizeCandidates": [ "2M" ], "type": "postviewImageSize", "currentPostviewImageSize": "2M" }, null, { "shootModeCandidates": [ "still" ], "type": "shootMode", "currentShootMode": "still" }, null, null, null, null, null, null, null, null, null, null, null, { "type": "whiteBalance", "currentColorTemperature": 0, "checkAvailability": true, "currentWhiteBalanceMode": "" }, { "type": "touchAFPosition", "currentTouchCoordinates": [], "currentSet": false } ], "id": 1 }

1 个答案:

答案 0 :(得分:1)

确保在调用“actTakePicture”之前调用“startRecMode”。您需要为以下相机调用“startRecMode”才能启用拍摄功能。

NEX-5R NEX-6 NEX-5T ILCE-7 ILCE-7R ILCE-5000 DSC-HX400V DSC-HX60V ILCE-6000 DSC-RX100M3 ILCE-7S ILCE-5100 ILCE-7M2 DSC-HX90V DSC-WX500 DSC- RX100M4 DSC-RX10M2 ILCE-7RM2 ILCE-7SM2