-1

I have a Sony QX1 camera and I want to delete the contents of the SD Card using the Sony Camera Remote API. The available API versions on the camera are 1.0, 1.1 and 1.2.

According to the documentation, the "deleteContent" API is available in API version 1.1. The problem is that I need to provide the URI of an image in the deleteContent request. The documentation refers to "getContentList" to get these URI's, but this API is only available in version 1.3.

How can I use the deleteContent API then? Is there any other way to format the SD card/remove all content with an API < 1.2 ? Or is there a way to update the QX1 camera to a newer firmware which has API 1.3?

Thanks for your help

Maxime B
  • 117
  • 2
  • 9

1 Answers1

0

The post below has information on this.

sony-camera-api - CameraRemoteAPIbeta - deleteContent/actFormatStorage

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

you need to call the API with the right version for each call and be in the right mode for that call. You need to switch to "Contents Transfer" mode to copy and delete files.

Community
  • 1
  • 1
chris
  • 51
  • 8
  • `The documentation refers to "getContentList" to get these URI's, but this API is only available in version 1.3.` – Veve Oct 19 '16 at 13:42
  • Each command you send has a version field and you put the right version in each command so the 'getContentList' would have version '1.3'. But the 'deleteContent' would need version '1.1'. I have used this with the QX1 camera successfully. – chris Oct 19 '16 at 17:51
  • But when I check which API versions my QX1 supports (using getVersions), 1.3 is not in the list ? I will try to use the API by adding the version header with 1.3 in it. – Maxime B Oct 19 '16 at 18:44
  • There are different getVersions results for each camera url. The avContent url should respond with all the versions the API supports – chris Oct 21 '16 at 16:50