I want to play videos continuously(video1, video2,video3...)
I used the below code
It always play the nth video only.
I used the below code
Code:
for(int i=1;i<=n;)
{
NSString *movieName = [NSString stringWithFormat:@"video%d", i];
NSString* movieFile = [[NSBundle mainBundle] pathForResource:movieName ofType:@"mov"];
QTMovie* aMovie = [QTMovie movieWithFile:movieFile error:nil];
[mMovieView setMovie:aMovie];
[aMovie autoplay];
i++;
}
It always play the nth video only.