http pseudo-streaming in IE11

孤者浪人 提交于 2019-12-06 06:13:39

Figured it out. IE11 does support pseudo streaming but it wants the "Accept-Ranges: bytes" header before it will bother requesting a range, so the server needs to respond with that regardless of whether it is actually sending a byte range. I had to modify my vid-streamer module to do that.

Caveat: I have no idea which browsers support the video tag but not byte ranges, so I can't say for sure that this won't break something somewhere, but it seems like it should be ok...

I had the same problem until after some test I figured out that the initial request from IE/Edge does not include a range header. If you correspondingly respond with an initial Content-Range of the file size equal to your Content-Length header IE will assume you just want to send the whole file in one go. If you don't get an range header you are better off choosing some content length that is less than the size of the file. I chose 1Mb, but it doesn't really matter I think.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!