2015-10-30 40 views
0

我似乎無法使用API​​開始拍照。我可以調用幾個信息API調用,但似乎像相機卡住了。下面是我在做什麼:初始化索尼相機API - 相機卡住

  • 啓動SMART在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

確保您呼叫的 「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