How to detect the mode of profiles (Silent/ Vibrate/general) in iPhone?
Solution:
AVAudioPlayer plays on silent mode when MPMoviePlayer plays:
NSURL *url = [NSURL URLWithString:self.videoURL];
MPMoviePlayerViewController *mpvc = [[MPMoviePlayerViewController alloc] initWithContentURL:url];
NSError *_error = nil;
[[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryPlayback error: &_error];
[self presentMoviePlayerViewControllerAnimated:mpvc];
Thanks & Regards,
R.Anusha