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 505 forks source link

Play Audio/Sound API #652

Closed gsmental closed 1 year ago

gsmental commented 5 years ago

Description

It is new requirements. many times we need to play a tone like when we create any notification and any other function. this tone may be used for delete/insert/error/warning/success/ or for any other reason.

VS bug #752321

mattleibow commented 5 years ago

We, or anyone in the community, need to collect info on what each platform does and how they play a sound like this.

jamesmontemagno commented 5 years ago

I think this is more of "Audio Player" API...

Like Adrian's https://github.com/adrianstevens/Xamarin-Plugins/tree/master/SimpleAudioPlayer

gsmental commented 5 years ago
KSemenenko commented 5 years ago

I used this plugin to play multiple tracks simultaneously. So we can not only play the sounds of the window with errors, but also make a sound subsystem for our solution. It can be used for games or music applications.

KSemenenko commented 5 years ago

Any updates?

adrianknight89 commented 5 years ago

Would like to see support for audio files as well. Ideally, we'd call an API and supply the sound file as well as basic configuration like auto play and loop. This is not meant to be a full-blown audio player but a simple tool to play application sounds.

jrahma commented 5 years ago

It should be able to play sound from URL as well as Resources 👍

Also it will be great if it will have OnPlaying event which returns the status and current position in addition OnStarted, OnPaused, OnStopped and OnFinished

gsmental commented 5 years ago

@jrahma, yes it is a nice idea from URL. but there is no activity/no milestone for this feature.

jfversluis commented 1 year ago

I think at this point it's safe to say that this won't be making it's way into Xamarin.Essentials anymore. Keep your eye on .NET MAUI for all new development! Thanks for all input and efforts here.