Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Is it possible to play 2 video file simultaneously in the same view?
- 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];
- 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];
Advertisement
Add Comment
Please, Sign In to add comment