gpt4 book ai didi

ios - 播放无控制的视频

转载 作者:行者123 更新时间:2023-12-01 17:56:56 24 4
gpt4 key购买 nike

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

提前致谢

最佳答案

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

关于ios - 播放无控制的视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15786400/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com