Skip to content

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

About

Foundation

AV Foundation

App Tracking Transparency

Game Kit

Store Kit

UI Kit

Social

Replay Kit

Contacts

AVKit

Photos

App Delegate

User Notifications

MediaPlayer

Core Location

AdSupport

EventKit

CloudKit

Authentication Services

XCode

Knowledge Base

Clone this wiki locally