插件处理了 iOS 15 以下 WKWebView 上的加载 WebKitErrorDomain 204 错误
我正在将一些 URL 加载到 WKWebView,例如 https://example.com/123123/example.mp4 。
该 URL 指向视频。 iOS 15 以上,一切正常,视频在 WKWebView 上播放。但在 iOS 15 以下,出现错误 WebKitErrorDomain=204, Plug-in Handling
。加载。我从 didFailNavigationWithError
方法得到它。 WKWebview 显示刚刚禁用的播放图标。
我尝试在 Mac 上的 Safari 浏览器上打开我的链接。它无法播放该视频。 Chrome 可以。
我尝试在 iOS 15 以下的 Safari 上打开我的链接。它无法播放该视频。在 iOS 15 上一切正常。
导致此错误的原因可能是什么?如何修复它?我在 SO 上发现了有关此主题的其他问题,但没有一个有帮助。
I am loading some URL to WKWebView, for instance, https://example.com/123123/example.mp4.
The URL points to video. Above iOS 15, everything is fine, video is playing on WKWebView. But below iOS 15, there is an error WebKitErrorDomain=204, Plug-in handled
. load. I got it from didFailNavigationWithError
method. WKWebview shows just disabled play icon.
I tried to open my link on Safari on Mac. It couldn't play that video. Chrome could.
I tried to open my link on Safari below iOS 15. It couldn't play that video. On iOS 15 is everything ok.
What can be the reason for this error? How to fix it? I found other questions about this topic on SO, but none of them helped.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论