视频全屏且禁用所有控件
我有一个视频需要在扫描二维码时激活。启动视频时需要全屏显示并且没有控件(音量和其他按钮)。有这方面的代码吗?另外,是否可以禁用iPhone的所有功能,以便用户需要观看完整视频?如果有人能回答我,我会非常高兴。
I have a video that needs to be activated when scanning a qr-code. When starting a video needs to be shown full-screen and without controls (volume and other buttons). Is there a code for this? Also is it possible to disable all functions of the iphone, so the user needs to view the full video? I would be so greatfull f somebody would answer me..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将 MPMoviePlayerController 的
controlStyle
属性设置为 MPMovieControlStyleNone。您将拥有一部没有任何控件的全屏电影。只需记住设置委托,以便您可以在视频播放完毕后关闭视频。You can set the
controlStyle
property of an MPMoviePlayerController to MPMovieControlStyleNone. You'll have a fullscreen movie with no controls. Just remember to set the delegate so you can dismiss the video when it finishes playing.