Starting with iOS 7, just call:
myAvPlayer.volume = 0;
Otherwise, you will have to use the annoying setAudioMix solution. I found support for this in my application as follows:
if ([mPlayer respondsToSelector:@selector(setVolume:)]) { mPlayer.volume = 0.0; } else { NSArray *audioTracks = mPlayerItem.asset.tracks;
source share