Save video to photos iOS and disk on Android

Hi,

I’m amazed at how hard this is!

I can get videos to save to my bundles tmp directory (or others) but how do I get them then into the iOS photos app.

Equally to make it well rounded, how do I get the tmp directory mp4 on android into google photos.

Please help

By my reading it looks like you’re saying

I can save to system.TemporaryDirectory…but

  • how do I move a image to iOS photo app storage?
  • how do I move a video to iOS photo app storage?
  • how do I write videos to Google Photos storage (local I assume).

I’m just re-writing this to be sure that’s what you’re looking for.  

I don’t have any specific answers, but will say:

  1. None of those targets (in bullet list) is target able without help from a plugin. Corona’s directory structure is designed to be self-contained and stay in the app sandbox.
  2. It is possible to reach out of the sandbox if you have knowledge of the target system directory structure OR get help from a plugin.
  3. I’d look in the Marketplace to see if you can find a plugin that helps do this work or discover directory structures: https://marketplace.coronalabs.com/

Close and I’ve done as you’ve suggested. No plugins or luck (that I’ve seen at least) I can move an image to the photo library on iOS using the activity plugin and raising an Activity sheet then letting the user save image, that is working fine. It’s videos that I have an issue with. The activity plugin doesn’t allow sharing of videos only images as a share file type. So forgetting images and focusing purely on videos, how can I either share them allowing the user to “Save video” to their photo library themselves or save directly into photos…? Once again, any help will be greatly appreciated.

This plugin might work, description certainly sounds like it’s what I’m after. Assuming it does, pasting here so others can find it: https://marketplace.coronalabs.com/plugin/video-shareCheers.

By my reading it looks like you’re saying

I can save to system.TemporaryDirectory…but

  • how do I move a image to iOS photo app storage?
  • how do I move a video to iOS photo app storage?
  • how do I write videos to Google Photos storage (local I assume).

I’m just re-writing this to be sure that’s what you’re looking for.  

I don’t have any specific answers, but will say:

  1. None of those targets (in bullet list) is target able without help from a plugin. Corona’s directory structure is designed to be self-contained and stay in the app sandbox.
  2. It is possible to reach out of the sandbox if you have knowledge of the target system directory structure OR get help from a plugin.
  3. I’d look in the Marketplace to see if you can find a plugin that helps do this work or discover directory structures: https://marketplace.coronalabs.com/

Close and I’ve done as you’ve suggested. No plugins or luck (that I’ve seen at least) I can move an image to the photo library on iOS using the activity plugin and raising an Activity sheet then letting the user save image, that is working fine. It’s videos that I have an issue with. The activity plugin doesn’t allow sharing of videos only images as a share file type. So forgetting images and focusing purely on videos, how can I either share them allowing the user to “Save video” to their photo library themselves or save directly into photos…? Once again, any help will be greatly appreciated.

This plugin might work, description certainly sounds like it’s what I’m after. Assuming it does, pasting here so others can find it: https://marketplace.coronalabs.com/plugin/video-shareCheers.