视频全屏且禁用所有控件

发布于 2024-11-25 12:34:41 字数 111 浏览 3 评论 0原文

我有一个视频需要在扫描二维码时激活。启动视频时需要全屏显示并且没有控件(音量和其他按钮)。有这方面的代码吗?另外,是否可以禁用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清晨说晚安 2024-12-02 12:34:41

您可以将 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文