It is possible to play 2 videos at a time.
:
1. 2 MPMoviePlayer
2.set frame 2- CGRectMake
3. 2 (self.view)
, u.
iOS 3.2 .
, - .
:
player1.view.frame = CGRectMake(0, 0, 320, 240);
[self.view addSubview:player1.view];
[[NSNotificationCenter defaultCenter]addObserver:self
selector:@selector(movieFinishedCallback:)
name:MPMoviePlayerPlaybackDidFinishNotification
object:player1];
[player1 play];
player2.view.frame = CGRectMake(0, 241, 320, 220);
[self.view addSubview:player2.view];
[[NSNotificationCenter defaultCenter]addObserver:self
selector:@selector(movieFinishedCallback:)
name:MPMoviePlayerPlaybackDidFinishNotification
object:player2];
[player2 play];