2015-10-30 2 views
0

Я не могу начать фотографировать с помощью API. Я могу вызвать несколько информационных вызовов API, но кажется, что камера застряла. Вот что я делаю:Инициализация API камеры Sony - камера застряла

  • Start Smart Remote Control на RX-10 M2 (последняя версия)
  • Подключение к Wi-Fi камеры.
  • дисплеи камеры Подключение ... и застревает там
  • Вызов 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

Убедитесь, что вы звоните "startRecMode" перед вызовом "actTakePicture". Для включения функций съемки вам необходимо вызвать «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 ДСК -RX100M4 DSC-RX10M2 ILCE-7RM2 ILCE-7SM2