How to mute/unmute audio when playing video using MPMoviePlayerController?
问题 I've created my own custom controls for use with the MPMoviePlayerController . So far everything works except the mute button control. I've configured the AVAudioSession using the following code before I create my instance of the MPMoviePlayerController . NSError *modeError = nil; [self.audioSession setMode:AVAudioSessionModeMoviePlayback error:&modeError]; if (modeError != nil) { NSLog(@"Error setting mode for AVAudioSession: %@", modeError); } NSError *categoryError = nil; [self