How to play audio and video in iPhone ? and Wanna Play Multiple videos simultaneously. ???
MPMoviePlayerController plays only one video at a time. But, you can play multiple video simultaneously using AVPlayer T utorial link for playing multiple video simultaneously - Play video simultaneously Download MPMoviePlayerController code . Code for .h file. #import #import #import @interface MultiMediaViewController : UIViewController { MPMoviePlayerViewController * player ; AVAudioPlayer * audioPlayer ; } - ( IBAction ) btnPlayVideo_Clicked :( id ) sender ; - ( IBAction ) btnPlayAudio_Clicked :( id ) sender ; - ( IBAction ) btnPlayBackgroundAudio_Clicked :( id ) sender ; - ( IBAction ) btnStopAudio_Clicked :( id ) sender ; @end 2. Code for .m file. #import "MultiMediaViewController.h" @implementation MultiMediaViewController - ( void ) viewDidLoad { [ super viewDidLoad ]; } - ( IBAction ) btnPlayVideo_Clicked :( id ) sender { NSString * path = [[ NSBundle mainBundle ] pathForResource