当 Web 请求单个 MP4 视频时,https 请求过多
如图所示,在线播放视频时,chrome 下载了太多视频片段。
在后端,我使用springboot WebMvcConfiguer来过滤请求,当请求url有'/files/**'时,它会让请求直接获取视频
我该如何解决这个请求问题,只需像下面这样发出请求
非常感谢
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
how can i solve this request problem , and just make the request like this below
Many thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这是由于浏览器随着时间的推移加载视频而不是一次性加载所有视频。这通常是出于性能原因而完成的,而且 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.