maui icon indicating copy to clipboard operation
maui copied to clipboard

Media Picker CameraOptions

Open VladislavAntonyuk opened this issue 1 year ago • 2 comments
trafficstars

Description

Since https://github.com/jamesmontemagno/MediaPlugin is deprecated there is no way to customize the camera for MediaPicker. For example, choose the default camera.

Public API Changes

Add CameraOptions to the CapturePhotoAsync and CaptureVideoAsync CameraOptions class can be copied from https://github.com/jamesmontemagno/MediaPlugin/blob/b82ad94f60c1e60d84a3ed90a4771b0ef0ea1d32/src/Media.Plugin/Shared/MediaStoreOptions.cs

Intended Use-Case

I would like to have a way to customize the camera for my app

VladislavAntonyuk avatar Jul 13 '24 08:07 VladislavAntonyuk

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

github-actions[bot] avatar Jul 13 '24 08:07 github-actions[bot]

I'm currently working on a legacy app that previously utilized the MediaPlugin library, which allowed for customization of photo quality through options like PhotoSize. In particular, we used the following code:

var file = await CrossMedia.Current.TakePhotoAsync(new StoreCameraMediaOptions
{
     PhotoSize = PhotoSize.Medium
});

With the transition to .NET MAUI, we've started using MediaPicker.Default.CapturePhotoAsync(). However, we encountered an issue on iPhone where the lack of photo quality customization is problematic. Specifically, our business rules impose a maximum file size of 5MB for uploaded photos. Without the ability to set the photo size or quality directly through MediaPicker, it becomes challenging to ensure compliance with these rules.

marcelojaf avatar Jul 29 '24 19:07 marcelojaf

Hi MAUI team, Hi @jfversluis ,

We are struggling with our Xamarin Forms migration to MAUI. A classic Xamarin Forms targetting Android and iOS ; like a lot of other developers. We had several migrations tries over the last 2 years and always postponed the migration as we saw that a lot of parts were missing.

I'm sorry guys, but migrating a real worl app to MAUI is a pain right now ! Even if a big effort has been done by Microsoft, it is not enought. I'm so disapointed to write that lines because we really LOVE Microsoft.

This issue is one of planty of pains we currently have. Therefore, we are breaking a lot of things to make the app work... and the result is having a worst app than before.

We also have customers, as you, and they are/will complain by having a less qualitative app. We are evaluating to rebuild the app from scratch and also testing other frameworks. It's a pity but we have no choice.

When I take a look to the backlog, I know that a lot of features (or bug fixes) will take a long time to come... if they come one day.

Like this issue, having a basic set of options for MediaPicker is a must have for a cross platform app (resolution, compression, camera selection).

So sad to have to write this... 😣

ricavir11 avatar Dec 05 '24 09:12 ricavir11

@ricavir11 thanks for your message, unfortunately this is not the right place for it! Feel free to reach out directly to see if there is anything we can do. Thanks

jfversluis avatar Dec 05 '24 12:12 jfversluis

Superseded by the stuff in here: https://github.com/dotnet/maui/issues/29075

jfversluis avatar Jun 16 '25 08:06 jfversluis