xamarin / Essentials

Xamarin.Essentials is no longer supported. Migrate your apps to .NET MAUI, which includes Maui.Essentials.
https://aka.ms/xamarin-upgrade
Other
1.52k stars 506 forks source link

MediaPicker does not include Audio files #1414

Open gvellanki opened 4 years ago

gvellanki commented 4 years ago

Description

MediaPicker does not include Audio files.

mattleibow commented 3 years ago

Can you pick audio with the FilePicker?

@jamesmontemagno maybe that idea you had to rename the MediaPicker to something more camera-y needs some thought. I think the "media" really means "use the camera" in this API. We can pick anything with the FilePicker, but we have really only got camera things in the MediaPicker.

@Redth, any ideas also?

mattleibow commented 3 years ago

Whatever we do, it needs to be decided before we release 1.6

Redth commented 3 years ago

This is out of scope for 1.6.

We can in the future potentially add PickAudioAsync similarly to how we Pick other things if that makes sense.

I also suspect an xplat audio recording API would be more useful than an audio picker which isn't a UI concept on every platform.

Redth commented 3 years ago

We could add an 'Audio' entry to this: https://github.com/xamarin/Essentials/blob/main/Xamarin.Essentials/FilePicker/FilePicker.shared.cs#L23

But that's also possible to do without it existing in the core library, the way we designed it.

I don't think there's any action here for now, it's simply not high enough in the priority list based on customer feedback we've received at this time.

gvellanki commented 3 years ago

You need to seriously think of adding Audio, Video picker for Android using File Picker from filesystem including removable media like sd/microSD cards. It’s a serious drawback even in Android Studio for unknown reasons. I don’t know if it’s a Standards issue or a technical challenge.

On Mon, Nov 30, 2020 at 8:45 PM Jonathan Dick notifications@github.com wrote:

We could add an 'Audio' entry to this: https://github.com/xamarin/Essentials/blob/main/Xamarin.Essentials/FilePicker/FilePicker.shared.cs#L23

But that's also possible to do without it existing in the core library, the way we designed it.

I don't think there's any action here for now, it's simply not high enough in the priority list based on customer feedback we've received at this time.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xamarin/Essentials/issues/1414#issuecomment-736162072, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJRVI3OQ63MZBZUF3WS77B3SSRDDBANCNFSM4SD7XXHA .

--

mattleibow commented 3 years ago

@gvellanki you can right now pick any file type using the FilePicker. In the sample, we even have a demo on picking the "digital comics" format (*.cbz).

gvellanki commented 3 years ago

Thanks for your response. Does it allow picking media files from SD/microSD cards as well?

On Tue, Dec 1, 2020 at 11:20 AM Matthew Leibowitz notifications@github.com wrote:

@gvellanki https://github.com/gvellanki you can right now pick any file type using the FilePicker. In the sample, we even have a demo on picking the "digital comics" format (*.cbz).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/xamarin/Essentials/issues/1414#issuecomment-736658566, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJRVI3IFQJD2DUQGJMF3D2LSSUJWDANCNFSM4SD7XXHA .

--