Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的应用程序中使用 AV 电影播放器播放背景视频。一旦我从该屏幕导航,我就会暂停该视频,因此,iPhone 会在 iPhone 中设置的固定时间间隔后自动锁定。但是,如果我留在播放视频的屏幕上,它永远不会自动锁定。如何在此屏幕上启用自动锁定?
我可以使用 MP 电影播放器或任何其他电影播放器来允许在支付视频时自动锁定 iPhone 吗?
请提供代码片段来处理这种情况。