Setting iOS MPMusicPlayerController volume relative to AVAudioPlayer
问题 I have an app that plays background music using MPMusicPlayerController and foreground sounds using AVAudioPlayer. I want to control the relative volume so that MPMusicPlayerController is much lower, but setting the volumne changes the overall system volume as if using the buttons on the side of the phone. Is there way to lower the volumne of MPMusicPlayerController without lowering the system volume? MPMusicPlayerController *musicPlayer = [MPMusicPlayerController applicationMusicPlayer];