ricohapi / theta-api-specs

THETA API Specifications
31 stars 8 forks source link

USB API DeleteObject call #33

Closed karmelcorn closed 11 months ago

karmelcorn commented 11 months ago

Hi,

I am using the MTP example and I want to delete the video file from the Ricoh camera.

Using the following code

res = command.Execute(MtpOperationCode.DeleteObject, new uint[2] { objectHandles[num - 1], 0x00000000 }, null); I could not delete the object (video file) on the Ricoh camera, even though the RespondCode = OK

karmelcorn commented 11 months ago

I updated the firmware (to 2.30.0) for the Theta X and files are being deleted with the DeleteObject command now.

However, if you have the Windows Explorer window open to the Theta Drive (This PC\RICOH THETA X\Fixed storage\DCIM\100RICOH), the deletion is not updated to the windows explorer. The file appear to be undeleted but if you try to click on it, you are unable to playback the video / view the image file. So it seems like the file has already been deleted, just not updated to the Windows Explorer.

If you disconnect the camera and reconnect it via usb, the windows explorer will be updated without the files that have been deleted.

DaisukeHohjoh commented 11 months ago

Hi @karmelcorn ,

the deletion is not updated to the windows explorer. If you disconnect the camera and reconnect it via usb, the windows explorer will be updated without the files that have been deleted.

I am sorry that this phenomenon is the limitation. Because Theta side does not notify the deletion to windows explorer, when the files are deleted by other process.

Best regards, Daisuke Hohjoh

karmelcorn commented 11 months ago

Hi @DaisukeHohjoh ,

Thank you for your reply. No worries. This should not be a problem for the purpose of my application. So I will go ahead and close this thread.