In my iPhone application I want to mute & unmute MPMoviePlayerController. I have searched a lot but I am unable to succeed. Is it possible to mute audio in MPMoviePlayer con
Use this to mute.
NSError *error; if ( ![[AVAudioSession sharedInstance] setActive:NO error:&error] ) { NSLog(@"Error encountered: %@", [error localizedDescription]); }
You will have to include the AVFoundation framework.