iPhone为什么要四次请求.m3u8播放列表文件? [英] Why does the iPhone request an .m3u8 playlist file 4 times?

查看:419
本文介绍了iPhone为什么要四次请求.m3u8播放列表文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么iPhone会请求4次.m3u8播放列表文件?而且,是否可以让它仅请求一次?

Why does the iPhone request an .m3u8 playlist file 4 times? And, is it possible to get it to request it only once?

请求执行如下:

  1. 第一个是完整请求.
  2. 第二个是字节范围为0-1的请求.
  3. 第三个是对完整文件的另一个字节范围请求.
  4. 最终请求还是完整的请求.

请注意:iPhone会根据这些请求终止连接,因此并非所有请求都能完成.

Note: that the iPhone kills the connection on these requests so not all of them complete to the end.

但是,我认为有很多不必要的请求,我想知道为什么iPhone会这样做,以及是否有可能让iPhone仅请求一次原始播放列表?

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?

推荐答案

听起来好像iPhone正在检查m3u8文件中的更改,以查看是否添加了任何.ts文件.这样做是因为它认为您的m3u8文件是实时流. 如果您有固定长度(VoD)的视频流,请尝试放入

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

#EXT-X-ENDLIST

位于m3u8文件的末尾

at the end of your m3u8 file

这篇关于iPhone为什么要四次请求.m3u8播放列表文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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