Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Save video to photos iOS and disk on Android
Started by Milner99 Dec 11 2017 05:03 PM

3 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Milner99

[GLOBAL: userInfoPane.html]
Milner99
  • Enthusiast

  • 74 posts
  • Corona SDK

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

 



[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,253 posts
  • Corona SDK

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/


[TOPIC: post.html]
#3

Milner99

[GLOBAL: userInfoPane.html]
Milner99
  • Enthusiast

  • 74 posts
  • Corona SDK

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.

[TOPIC: post.html]
#4

Milner99

[GLOBAL: userInfoPane.html]
Milner99
  • Enthusiast

  • 74 posts
  • Corona SDK

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-share Cheers.


[topic_controls]
[/topic_controls]