How to change volume using MPMusicPlayerController without affecting device volume

I use MPMusicPlayerControllerand AVAudioPlayerat the same time. To balance the sound, I have two volume sliders for MPMusicPlayerControllerand AVAudioPlayerfor each. If I turn off the volume MPMusicPlayerand increase the volume AVAudioPlayer, the volume of the entire device will turn off and I will not be able to hear the sound AVAudioPlayer.

Then, how can I independently change the volume MPMusicPlayerwithout affecting the volume of the device.

+5
source share
1 answer

iOS 7 MPMusicPlayer volume, iOS7. AVAudioPlayer , , .

, iOS 7, , :

MPVolumeView

+1

All Articles