yasirkula / UnityNativeShare

A Unity plugin to natively share files (images, videos, documents, etc.) and/or plain text on Android & iOS
MIT License
908 stars 134 forks source link

[iOS] Download & share video #6

Closed mrgoonie closed 6 years ago

mrgoonie commented 6 years ago

Hello, firstly thank you for building a great plugin!

When I try to download a MP4 video from internet, then share with NativeShare, it said: "FileNotFoundException: File not found at file:///var/mobile/Containers/Data/Application/3610BD90-F257-4DED-A91D-43ECD4A15EFF/Library/Caches/final.mp4"

I tried saving video at both Application.persistentDataPath and Application.temporaryCachePath, same result.

Also tried with: NativeShare.Share(videoPath, "Subject here (optional)", "Message here (optional)", true, "nativeshare.test"); ...and: NativeShare.Share("file://" + videoPath, "Subject here (optional)", "Message here (optional)", true, "nativeshare.test"); ...but it still didn't work.

I'm pretty sure the video was downloaded already, because I can play it back by: Handheld.PlayFullScreenMovie("file://" + fullPath, Color.black, FullScreenMovieControlMode.Hidden);

What am I supposed to do now?

Thank you!

mrgoonie commented 6 years ago

Never mind, my mistake, I didn't notice there is a flag boolean of this plugin for sharing a video file. Let close this one.