dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.63k stars 1.62k forks source link

Android Video Capture - MediaPicker.Default.CaptureVideoAsync is saving recorded videos to the Android Gallery #22087

Open devon1146 opened 2 weeks ago

devon1146 commented 2 weeks ago

Description

Hello,

The dotnet 8 version of Maui is saving recorded videos on Android devices to the Gallery. I do not believe this behaviour is intentional, and does not occur on iOS.

Steps to Reproduce

  1. Create a new MAUI project
  2. Call "MediaPicker.Default.CaptureVideoAsync(new());" at some point during your code in order to record a video.
  3. Run this on Android - the video you capture will be saved to the device's gallery.

It would be great if this was an option - potentially as a setting in your MediaPickerOptions().

Thank you!

Link to public reproduction project repository

Link to public repo

Version with bug

8.0.21 SR4.1

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

7.0.101

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No, not yet.

Relevant log output

No response

devon1146 commented 2 weeks ago

a link to a public repo has been added:

https://github.com/devon1146/MauiTestVideo/tree/main for reference.

RoiChen001 commented 1 week ago

Can repro this issue at Android device on the latest 17.10 Preview 5(8.0.20&8.0.21).

Danzerb commented 1 day ago

Tracking this one - I have numerous customers using our MAUI app that are upset about this behaviour. Would love to be able to communicate a deliverable timeline on the fix.