如何全屏播放视频,以防止触摸视频时出现控件(暂停,播放等)?相反,当触摸视频时,我想关闭它。
能做到吗?

提前致谢

最佳答案

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];

10-07 23:12