cordova-plugin-nativeaudio
cordova-plugin-nativeaudio copied to clipboard
Can't set sounds volume with device button IOS 9+
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 ?
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.
Any news/workarounds on this topic? :D *highlyappreciated
I faced the same problem and solved it using this plugin: https://github.com/capacitor-community/native-audio