Skip to content

Latest version -- NativeGallery.SaveVideoToGallery('filePath') fails, but succeeds if you use byte[] #350

Description

@Saif0089

Description of the bug

Saving an existing .mp4 file into gallery fails.

NativeGallery.SaveVideoToGallery(recordingMP4FilePath, _album, videoFileName,
(success, path) =>
{
    Debug.Log($"VideoRecorder => Video saved to gallery in {_album}");
    
    OnSavedToGallery?.Invoke(videoFileName);
    
    File.Delete(recordingMP4FilePath);
});

Reproduction steps

Try saving an existing video file into Gallery.

Platform specs

  • Unity version: 6000.1.10f1
  • Platform: iOS
  • Device: iPhone 15 Pro, iOS 18.6.2
  • Asset was up-to-date, was installed using OpenUPM, v1.9.1*

Additional info

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions