Safari使用IIS在mp4上获得404 [英] Safari gets 404 on mp4 with IIS

查看:114
本文介绍了Safari使用IIS在mp4上获得404的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用IIS来提供mp4视频。我在mac / safari上获得了404。它适用于同一台mac上的chrome和firefox。 MIME是视频/ mp4。



我在本地运行测试以排除视频编码和视频编码。我也直接采用了请求路径,跳过了html和js,结果相同。 Safari也不会将直接网址加载到视频中。



我不知道下一步该在哪里看?

I'm using IIS to serve mp4 videos. I get a 404 on mac/safari. It works in chrome and firefox on the same macs. The MIME is video/mp4 .

I've ran tests locally to rule out the video encoding, and the videojs. I've taken the request path directly as well, skipping the html and js, with the same results. Safari will not load the direct url to the video either.

I'm not sure where to look next?

推荐答案

事实证明,Safari确实对媒体提出了范围请求。 IIS本身可以处理这个,但我们正在使用mvc路由 - 我们没有为此提供任何处理。解决方案是构建一个处理范围请求的操作结果。我们正在提出一个基于这个的解决方案[ ^ ]
It turns out Safari does range requests for media. IIS itself can handle this, but we are using mvc routing - and we didn't provide any handling for this. The solution is to build an action result that handles range request. We're pulling a solution based on this[^]


这篇关于Safari使用IIS在mp4上获得404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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