こんにちは友人、アプリケーションでビデオファイルを繰り返し再生したいのですが、次のコードを使用してビデオファイルを再生しました
NSString *tempurl = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Movie.m4v"];
MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:tempurl]];
player.view.frame = CGRectMake(0, 0, 867, 1008);
player.scalingMode = MPMovieScalingModeFill;
[self.view addSubview:player.view];
[player play];
動画ファイルの再生終了を警告できる Delegate メソッドを用意できますか 事前にありがとうございます