1

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

提前致谢

4

1 回答 1

5
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];
于 2013-04-03T13:03:53.723 回答