为什么 iOS 是这样的? MPMoviePlayerViewController 做了这么多请求?

发布于 2024-10-08 20:31:26 字数 444 浏览 0 评论 0原文

当我从 iPhone(YouTube 应用程序)启动视频时,我发现了流量,并注意到在下载大部分视频(并开始播放)的实际请求完成之前,有很多小的字节范围请求。请参阅 HTTPScoop 的屏幕截图(我通过计算机路由 iPhone 的流量)。

alt text

现在,在我自己的应用程序中,我还尝试从网络上播放视频,甚至更小的字节-范围请求在实际播放开始之前完成: alt text

我有一种感觉,所有这些请求都在延迟播放(播放开始的那一刻似乎与最大的请求相关)字节范围,通常在 10-20 秒后发生......)

为什么 iOS 的 MPMoviePlayerViewController 会执行如此多的请求?

I scooped the traffic when starting a video from the iPhone (YouTube app) and noticed a lot of small byte-range requests, before the actual request is done that downloads the bulk of the video (and playback starts). See screenshot of HTTPScoop (I routed the iPhone's traffic through my computer).

alt text

Now, in my own app, I'm also trying to playback video from the web, and even more small byte-range requests are done before the actual playback starts:
alt text

I got a feeling all those requests are delaying the playback (the moment the playback starts seems to be correlated with the largest byte range, which often happens after 10-20 secs....)

Why is iOS' MPMoviePlayerViewController doing so many requests?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文