插件处理了 iOS 15 以下 WKWebView 上的加载 WebKitErrorDomain 204 错误

发布于 2025-01-16 12:37:30 字数 532 浏览 1 评论 0原文

我正在将一些 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 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文