Skip to content

Mediapicker takevideo not saving video to album #564

@xiufengpeng

Description

@xiufengpeng

Use the the latest VS 2022 as of 11 Jan.2025, .Net 9
Use the latest the Mediapicker nuget package

When taking a video from MAUI app on iPhone, and video is NOT saved the album folder. The source code sample is below:

    FileResult video = await MediaPicker.Default.CaptureVideoAsync();
            //  UIVideo.SaveToPhotosAlbum()
            // save the file into local storage
            string localFilePath = Path.Combine(FileSystem.CacheDirectory, video.FileName);

            using Stream sourceStream = await video.OpenReadAsync();
            using FileStream localFileStream = File.OpenWrite(localFilePath);

            await sourceStream.CopyToAsync(localFileStream);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions