我似乎无法使用API开始拍照。我可以调用几个信息API调用,但看起来相机卡住了。这就是我正在做的事情:
Other Function
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
}
答案 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