Code:
- (void)setupCombinedVideo {
NSURL *combinedRSandFBUrl = [NSURL fileURLWithPath:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Page2Movie.m4v"]];
combinedRSandFBPlayer = [[MPMoviePlayerController alloc] initWithContentURL:combinedRSandFBUrl];
//combinedRSandFBPlayer.shouldAutoplay = NO;
combinedRSandFBPlayer.repeatMode = MPMovieRepeatModeOne;
combinedRSandFBPlayer.controlStyle = MPMovieControlModeDefault;
combinedRSandFBPlayer.view.frame = CGRectMake(0.0, 139.0, 1024.0,560.0);
// combinedRSandFBPlayer.view.frame = CGRectMake(17.0, 35.0, 990.0,698.0);
[scrollButtonView addSubview:combinedRSandFBPlayer.view];
combinedRSandFBPlayer.view.backgroundColor = [UIColor clearColor];
scrollButtonView.backgroundColor = [UIColor clearColor];
[mainScrollView bringSubviewToFront:mainpagePagingIndicator];
The video was used to work perfectly fine in iOS version 4.2/4.3 but when i run the app in iOS 5 simulator the video starts to stuck and completely stops and i am getting this error in "SIGBRT" "An AVPlayerItem can occupy only one position in a player’s queue at a time" .
Can anyone explain me and help me in finding the solution .