当 Web 请求单个 MP4 视频时,https 请求过多

发布于 2025-01-16 21:38:45 字数 354 浏览 3 评论 0原文

too Many requests

如图所示,在线播放视频时,chrome 下载了太多视频片段。

在后端,我使用springboot WebMvcConfiguer来过滤请求,当请求url有'/files/**'时,它会让请求直接获取视频 filter

我该如何解决这个请求问题,只需像下面这样发出请求

正确结果

非常感谢

too many requests

as you can see in the picture, the chrome has download too many clips of a video when playing a video online.

In rear end, I use springboot WebMvcConfiguer to filter the requests, when request url has '/files/**', it will let the request get the video directly
filter

how can i solve this request problem , and just make the request like this below

correct result

Many thanks

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

找个人就嫁了吧 2025-01-23 21:38:45

我认为这是由于浏览器随着时间的推移加载视频而不是一次性加载所有视频。这通常是出于性能原因而完成的,而且 chrome 似乎不喜欢人们围绕它工作。 这里是关于同一件事的另一篇文章的链接。

I think this is due to the browser loading the video over time versus all at one time. This is typically done for performance reasons and it doesn't seem like chrome likes people working around it. Here is a link to another post about the same thing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文