为什么 iPhone 请求 .m3u8 播放列表文件 4 次?
为什么 iPhone 请求 .m3u8 播放列表文件 4 次?并且,是否可以让它只请求一次?
请求的执行方式如下:
- 第一个是完整请求。
- 第二个是字节范围请求,范围为0-1。
- 第三个是完整文件的另一个字节范围请求。
- 最终的请求又是一个完整的请求。
注意:iPhone 会终止这些请求的连接,因此并非所有请求都能完成。
然而,我认为有很多不必要的请求,我想知道iPhone为什么这样做,是否可以让iPhone只请求一次原始播放列表?
Why does the iPhone request an .m3u8 playlist file 4 times? And, is it possible to get it to request it only once?
The requests are performed as follows:
- The first one is a full request.
- The second one is a byte range request with a range of 0-1.
- The third is another byte range request for the complete file.
- The final request is again a complete request.
Note: that the iPhone kills the connection on these requests so not all of them complete to the end.
However, there is a lot of unnecessary requests in my opinion and I would like to know why the iPhone does this and whether or not it's possible to get the iPhone to request the original playlist only once?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来 iPhone 正在检查您的 m3u8 文件中的更改,以查看您是否添加了任何 .ts 文件。它这样做是因为它认为您的 m3u8 文件是实时流。
如果您有固定长度 (VoD) 流,请尝试将其
放在 m3u8 文件的末尾
It sounds like the iPhone is checking for changes in your m3u8 file, to see if you have added any .ts files. It does this because it thinks your m3u8 file is a live stream.
If you have a fixed length (VoD) stream, try putting
at the end of your m3u8 file
我猜测客户端正在对文件进行采样并通过从文件下载字节范围来测量客户端连接速度。如果没有来源或进一步的文档,我们无法确定。
I would guess the client is sampling the file and measuring client connection speeds by downloading byte ranges from the file(s). Without source or further documentation we can't know for sure.