I am working on an Alarm app and i used AVAudioPlayer to play the alarm Sound, I have a slider to adjust the audioPlayer Sound in my application settings.Now when the alarm is making any sound i dont want to reduce/increase the audioPlayer Sound through the volume Keys of Iphone/Ipad.
//to set the slider value as player sound in my app
player.volume =[[NSUserDefaults standardUserDefaults]floatForKey:@"Volume"];
can anybody please suggest me on how to make the volume keys to show no effect on player Sound when the alarm is playing sound.
Thanks.