cordova-plugin-nativeaudio icon indicating copy to clipboard operation
cordova-plugin-nativeaudio copied to clipboard

Can't set sounds volume with device button IOS 9+

Open Faksprod opened this issue 7 years ago • 3 comments

I used "preloadSimple" to load a 8 seconds sound, play it then loop it. The "play" and "loop" functions works well. But when I'm trying to set the volume using my device button (iPhone and iPad on IOS 9.3.4) I encountered something very weird... Each time the sound loop restart, the app volume restart higher or lower. For example: if I turn down the volume of my device, I can hear the music volume going down for a while, but when the loop as finished and restart, the app volume restart too at its first point... Even if my device is muted ! The same thing if turn up the volume of my device, when the loop restarts, the app volume goes down... Any idea ?

Faksprod avatar Aug 19 '16 22:08 Faksprod

Same issue for me - audio playback of simply loaded file on iOS 10 starts at full volume no matter what the phone volume is set to.

Adjusting during playback will set volume to the correct level mid-playback but as soon as you play a new file or replay a file it will be full volume again, rendering this plugin unusable for the moment.

EWBears avatar May 17 '17 21:05 EWBears

Any news/workarounds on this topic? :D *highlyappreciated

danielfliegauf avatar Apr 13 '18 14:04 danielfliegauf

I faced the same problem and solved it using this plugin: https://github.com/capacitor-community/native-audio

Sitronik avatar Aug 20 '21 20:08 Sitronik