Need my video to loop please

Posted by Jay L on Stack Overflow See other posts from Stack Overflow or by Jay L
Published on 2011-01-02T21:51:40Z Indexed on 2011/01/02 21:53 UTC
Read the original article Hit count: 114

Filed under:
|
|

Hi all, Thank you in advance for any help, I am a newbie and would appreciate any help here.. I have this code to play a movie and it works great. Can somebody PLEASE tell me how to make this movie loop and replay from the beginning non stop ( any code would help). Also I would like to know how to play 2 movies, one after the other, preferably with a fade or smooth transition. Thank you for any help

import "MyAppViewController.h"

@implementation MyAppViewController

-(IBAction)button:(id)sender{ NSString *path = [[NSBundle mainBundle] pathForResource:@"mymovie" ofType:@"mp4"];

player = [[MPMoviePlayerViewController alloc]
          initWithContentURL:[NSURL fileURLWithPath:path]];

[self presentMoviePlayerViewControllerAnimated:player];

}

© Stack Overflow or respective owner

Related posts about video

Related posts about infinite-loop