capacitor-community / native-audio

MIT License
109 stars 66 forks source link

Add documentation of WHY developers should use this instead of HtmlAudioElement #79

Open folsze opened 1 year ago

folsze commented 1 year ago

I cannot find in the readme anywhere an explanation of what advtantages and differences this plugin brings to using the HTMLAudioElement

See this post, also looking for such more details: https://stackoverflow.com/questions/75932418/play-sounds-in-ionic-react-with-capacitor

In my opinion the usage-case/reason of a plugin should be very visible in the documentation.

Thanks a lot for the plugin. If you quickly mention the pros/cons of each, I could make a PR for documentation and elaborate more

ctg3 commented 1 year ago

The biggest problem for my use case is the fact that HTMLAudioElement does not support playing audio without user interaction.

https://stackoverflow.com/questions/70582036/how-to-autoplay-play-unmuted-media-without-user-interaction-on-angular

aparajita commented 1 year ago

The biggest problem for my use case is the fact that HTMLAudioElement does not support playing audio without user interaction.

https://stackoverflow.com/questions/70582036/how-to-autoplay-play-unmuted-media-without-user-interaction-on-angular

Correct.