加载资源失败,插件在 iOS 上处理加载 [英] Failed to Load Resource, Plugin Handled Load on iOS

查看:47
本文介绍了加载资源失败,插件在 iOS 上处理加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我尝试在我的服务器上查看视频文件时,我都会在 iOS 的 Safari、Chrome 上收到此错误.

Every time I try to view a video file on my server I get this error on iOS in Safari, Chrome.

我使用的是 blob 服务器,然后是 Apache 服务器,所以我不确定问题是什么.但是,当我只使用 Apache 时,我确实收到了这个错误,但我也有视频渲染.

I am using a blob server and then an Apache server so I am not sure what the problem is. However, when I only use Apache, I do get this error but then I have the video rendering too.

但是,当我使用我的服务器渲染它时,这不起作用.有人知道为什么是这样吗?这些视频在其他设备上运行良好,如果仅通过 Apache 访问,则在浏览器中也可以正常运行.

However when I render this using my server this is not working. Does anyone know why this is? The videos work fine on other devices and in browsers also works fine if accessed through Apache only.

推荐答案

这个问题的解决方案只是一种变通方法.原因是 blob 服务器不是流服务器.iOS 设备希望视频以小块的形式到达.因此,例如流媒体服务器能够做到这一点.但是,blob 服务器只是将视频作为 blob 处理,这不是 iOS 设备所期望的.一些浏览器足够聪明来处理这个问题,但其他浏览器则不然.

The solution to this problem was just a work around. The reason being the that blob servers aren't streaming servers. iOS devices expect the videos to arrive in small chunks. So for instance a streaming server is able to do this. However, a blob server just hands the video as a blob which is not what the iOS device expects. Some browsers are smart enough to handle this but others not.

我解决这个问题的方法是在项目内的文件夹中添加 blob 服务器之外的视频文件,然后通过 Apache 服务器呈现它,而不是通过我们使用的实际 blob 服务器提供它.我希望这有帮助.

The way I solved this was to add the video files outside of the blob server in a folder within the project and then render this through the Apache server instead of serving it via the actual blob server we were using. I hope this helps.

这篇关于加载资源失败,插件在 iOS 上处理加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆