adrianstevens / Xamarin-Plugins

Cross-platform Plugins for Xamarin, Xamarin.Forms and Windows
https://www.nuget.org/packages/Xam.Plugin.SimpleAudioPlayer/
MIT License
133 stars 53 forks source link

SimpleAudioPlayer.Load() resets volume on iOS (but not Android) #107

Open BlueRaja opened 2 years ago

BlueRaja commented 2 years ago

The behavior should be consistent across platforms.

Repro steps:

  1. Set player.Volume
  2. Call player.Load(...)

Actual Results

On iOS, the volume set in step (1) is ignored and the audio is played at full volume. On Android, the Volume is respected.

Expected Results

I think "Don't reset the volume" makes the most sense.

"Does reset volume" would be acceptable, as long as it was consistent across both platforms and heavily documented. Between the two changes, however, I think this is both more confusing and more likely to break existing usages.


I'm running Xam.Plugin.SimpleAudioPlayer 1.5.0, so it's possible this has been fixed, but unlikely.