HTML5 视频打破了 iPad 应用方向
我有一个 iPad 应用程序,其中包含一个由我的客户填充的 UIWebView。该应用程序设计为仅在纵向模式下运行,并且我已在应用程序中的每个视图控制器中相应地设置了shouldAutorotateToInterfaceOrientation。我也在Plist中设置了它。
当用户在 Web 视图中播放 HTML5 视频并选择全屏按钮并将 iPad 旋转至横向时,视频将以横向方式播放。但是,如果他们在仍处于横向状态时按下“完成”按钮,则视频将关闭,并且下面的应用程序(包括状态栏)将处于横向状态。
如果用户然后旋转到纵向,则所有内容都将固定并锁定为纵向。
如何避免视频关闭后处于横向模式?看起来很糟糕。
I have an iPad app that contains a UIWebView that gets filled by a client of mine. The app is designed to run in portrait mode only and I've set the shouldAutorotateToInterfaceOrientation accordingly in every viewcontroller in the app. I've also set it in the Plist.
When a user plays an HTML5 video in the webview and chooses the fullscreen button and rotates the iPad to landscape, the video plays in landscape. However, if they press the "done" button while its still in landscape, the video closes and the app underneath, including the status bar, is in landscape.
If the user then rotates to portrait everything is fixed and locked in portrait.
How can I avoid it being in landscape mode after the video is closed? It looks terrible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论