视频元素发送多个网络请求
我有一个带有MP4源的视频元素
<视频src =“ https://dh2jw0564x0cd.cloudfront.net/projects/6a30cb01-44414-4414-4414c50-4c550-c250-ac7e-c29ac30358dnynynyny nyr 10S_1MB.MP4“控制预紧力=“ auto”></video>
查看“网络”选项卡,我
- 在某个时候看到不一致的行为,当我按下时,我根本看不到视频的请求,
- 我看到了带有206响应的新请求(range)
- 有时第一个请求的内容长度是整个视频的大小,但是我确实看到以下请求(带有206个响应),即使整个视频已经下载(WTF)
- 视频创建了更多的HTTP请求。
暂停并播放,也为我尝试过的 要在线查找信息,但是如果有人可以阐明这一点,它将非常有帮助...
一切似乎都非常不一致,我试图找出是否已经下载了数据是否再次下载。 。
I have a video element with a mp4 source
<video src="https://dh2jw0564x0cd.cloudfront.net/projects/6a30cb01-4414-4c50-ac7e-c2d9ac30358d/assets/videos/1646314487232_Big_Buck_Bunny_1080_10s_1MB.mp4" controls preload="auto"></video>
looking at the network tab I see inconsistent behavior
- sometime I dont see the request for the video at all
- when I press play I see a new request with 206 response (range)
- sometimes the content length of the first request is the size of the whole video, but I do see following requests (with 206 responses) even though the whole video was already downloaded (wtf)
- pause and play creates more http requests for the video
I tried to find info online but if someone can shed some light on this it will be very helpful...
All an all it seems very inconsistent and I'm trying to find out if data is being downloaded again even though it is already downloaded...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论