sony-camera-api - CameraRemoteAPIbeta - deleteContent/actFormatStorage

心已入冬 提交于 2019-11-29 18:02:25
chris

I have been able to delete files from the camera using the following sequence of calls:

  • setCameraFunction to "Contents Transfer"
  • getSourceList to get storage location
  • getContentCount to get count of files
  • getContentList to get list of files on camera
  • parse content list to get file URI's
  • deleteContent to delete each file

I am also trying to figure out how to use the actFormatStorage, but no luck so far

Check to make sure you have the latest firmware installed on your camera. The "deleteContent" API is only available in API version 1.1 and "getContentList" in API version 1.3.

Also, after re-reading your question the "getAvailableApiList" only returns methods that are part of the "camera" service. "deleteContent" and "getContentList" are part of the "avContent" service and they won't be listed when you call "getAvailableApiList".

Instead you should call "getMethodTypes" to list the methods of the "avContent" service. See the section on page 10 of the API reference called "Supported APIs and availalble APIs" for more details.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!