如何全屏播放视频,防止在触摸视频时出现控件(暂停、播放等)?相反,当触摸视频时,我想关闭它。这可以做到吗?
提前致谢
MPMoviePlayerViewController *playerViewController=[[MPMoviePlayerViewController alloc]initWithContentURL:[NSURL fileURLWithPath:[[NSBundle mainBundle]pathForResource:@"xyz" ofType:@"mp4"]]];
[self presentModalViewController:playerViewController animated:YES];
MpMoviePlayerController *player = [playerViewController moviePlayer];
player.controlStyle=MPMovieControlStyleNone; //hide the controls
[player play];