【发布时间】:2011-03-14 10:42:51
【问题描述】:
各位朋友, 我希望视频文件在我的应用程序中重复播放,我使用以下代码播放视频文件
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 方法吗 提前谢谢你
【问题讨论】:
标签: iphone iphone-sdk-3.0 mpmovieplayercontroller mpmoviewcontroller