joshvillbrandt / goprohero

A Python library for controlling GoPro cameras over http.
Apache License 2.0
264 stars 57 forks source link

Delete specific image #14

Open sinkers opened 9 years ago

sinkers commented 9 years ago

I have noticed that in the iOS app you can delete a specific image from the gopro but I can't work out how to do this. Any ideas?

joshvillbrandt commented 9 years ago

Is this for both the 3's and the 4's? I haven't tried specific images, but I am aware of the delete_last and delete_all commands (see API.)

I think the GoPro HERO4's have an additional, more featured API that isn't implemented by this library. Maybe @DenisCarriere's gopro library has support for this, which is exclusively for the 4's.

sinkers commented 9 years ago

I have been testing on a 3 at present but am assuming it is the same for a 4 (and will test later). Basically in the app you can drill down to a specific image and delete it - see attached. So there is a command there somewhere but I haven't had much luck getting my command sniffing setup going yet. img_4418

joshvillbrandt commented 9 years ago

Hmm. So there are actually two servers on the 3's. One is the command server and the other is a plain, old file server. Now that I think about it, I'm sure this is using the file server to view and delete the files. I'm pretty sure the address for that is documented somewhere in this repo. You can then access the file server straight from a web browser and you can use Chrome dev tools or the Firefox inspector to sniff the traffic!

sinkers commented 9 years ago

Can you advise exactly what setup you are using to intercept the commands? I will do some testing on Hero4 as well