UIWebView外屏视频的拦截控制
我正在向 iPad 添加外部显示功能,但在使用基于 UIWebView 的视频控件时遇到了一些问题。
每当播放基于 UIWebView 的视频时,外部屏幕会自动接管以全屏显示视频。不幸的是,我无法关闭该视频并将外部屏幕返回到之前的网络视图。仅当 webview 内容完全卸载后,外部屏幕上的全屏视频才会显示为清除。
当播放 UIWebView 视频并创建全屏视频控制器时,该控制器存在于哪里?有没有办法检测或以其他方式管理它?如何手动强制关闭该控制器?
I'm adding an external display capability to my iPad and am having some trouble with UIWebView based video controls.
Whenever a UIWebView based video is played, the external screen is automatically taken over to display the video fullscreen. Unfortunately, I have no way to close that video and return the external screen to its previous webview. The fullscreen video on the external screen only appears to be cleared once the webview content is completely unloaded.
When a UIWebView video is played and the fullscreen video controller is created, where does that controller exist? Is there a way to detect or otherwise manage it? How can I manually force dismissal of this controller?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
参见这篇文章:
如何从 UIWebView 嵌入的 YouTube 接收 NSNotification视频播放
否则,我使用此解决方法取得了一定程度的成功:
例如:
See this post:
How to receive NSNotifications from UIWebView embedded YouTube video playback
Otherwise, I have used this workaround with some level of success:
Like: