How can I show the same HTML 5 Video twice on a website without loading it twice?

前端 未结 3 1375
孤街浪徒
孤街浪徒 2020-12-10 06:28

I currently have 2 video elements on my html-page.
Both embed exactly the same .mp4 video from the same URL.

Is there any way to tell the browser

3条回答
  •  清歌不尽
    2020-12-10 07:10

    A simple solution can be to add a value to the end of the url with #anything

    Since you are loading the video in one video element and want to load it again in a different video element, you can arrange it like below with a unique url:

    
    
    
    

提交回复
热议问题