When AVAudioSession is used to for audio play and MPMoviePlayerController is used to play video then how to mute both when device is mute.
When AVAudioSession is used to for audio play and MPMoviePlayerController is used to video play, MPMoviePlayerController is used to AVAudioSession of AVAudioPlayer for audio, When we mute the device the audio is mute but after that MPMoviePlayerController called then audio voice is again came of AVAudioPlayer. So, please give me any solution how to mute the whole application which is plays either AVAudioPlayer or MPMoviePlayerController.
Thanks in advance.