-(void)initAndPlayMovie:(NSURL *)movieURL
{
// Initialize a movie player object with the specified URL
MPMoviePlayerController *mp = [[MPMoviePlayerController alloc] initWithContentURL:movieURL];
if (mp)
{
self.moviePlayer = mp;
[mp release];
[self.moviePlayer play];
}
}
Here, In above code, We can pass just one movie URL. Isn't it possible to pass multiple urls to it.
So, Movie Player will load second url after playing first one.
Is it Possible?
How can we do that?
Right Now, When I try to Pass other url, After finishing first one.
- (void) moviePlayBackDidFinish:(NSNotification*)notification
{
[self initAndPlayMovie:secondURL];
}
The Device First change it's orientation while loading & after loading Device again come back to landscape mode.
How to resolve this problem?
Thanks in advance for sharing your knowledge to me.
Sagar