HTML <video loop> - Downloaded multiple times

前端 未结 3 1566
逝去的感伤
逝去的感伤 2021-02-15 10:41

I\'m trying to set up a video as a background in a page. The thing is that i have a and triggers 1 download for the video, then when it finishes y start playing the video again

3条回答
  •  悲哀的现实
    2021-02-15 10:53

    I've had the same problem and searched the internet for a solution. I know this is a 3 year old post, but it might help people who run into this issue. In my case we had a +- 24mb .mp4 file in loop, chrome redownloaded the video on every loop. I compressed the video a bit and converted the video to a .webm. The file size was reduced to 4.5mb and the problem disappeared.

    Edit : It seems like it has something to do with the file size. The problem also does not occur with a 4.5mb .mp4.

提交回复
热议问题