My app has a feature to play system music player's music and it has it's own audio too. When music player's music is playing and app's audio will begin to play, I have to decrease the music player volume without affecting app's volume.
I am currently changing music player's volume with MPVolumeView
as MPMusicPlayerController
volume
property is deprecated. But it is system volume which affects app's volume too though I have used [avAudioPlayer setVolume:1.0]
, which is quite natural.
My question is, is there any way to change the music player's volume without affecting app's volume?