-
Notifications
You must be signed in to change notification settings - Fork 1
Save Video to Camera Roll
Stanislav Osipov edited this page Mar 28, 2020
·
3 revisions
UISaveVideoAtPathToSavedPhotosAlbum
will add a movie at the specified path to the user’s Camera Roll album.
Before calling this function, call the UIVideoAtPathIsCompatibleWithSavedPhotosAlbum
function to determine if it is possible to save movies to the Camera Roll album. For a code example, refer to Camera Programming Topics for iOS.
using SA.iOS.UIKit;
...
string videoPath = GetMyVideoPath();
if (ISN_PhotoAlbum.UIVideoAtPathIsCompatibleWithSavedPhotosAlbum(videoPath))
{
ISN_PhotoAlbum.UISaveVideoAtPathToSavedPhotosAlbum(videoPath, result =>
{
if (result.IsSucceeded)
Debug.Log("Video saved.");
else
Debug.Log("Error: " + result.Error.Message);
});
}
Based on iOS UIKit::UISaveVideoAtPathToSavedPhotosAlbum
Reliable and high-quality Unity Development service. Let's Talk!
Website | AssetStore | LinkedIn | Youtube | Scripting Reference
- Getting Started
- Authentication
- Game Center UI
- Leaderboards
- Default Leaderboard
- Achievements
- Saving A Game
- Access Point
- iTunes Connect Setup
- StoreKit Initialization
- Purchase flow
- Receipt Validation
- Store Review Controller
- Storefront API
- Subscription Offers