Chrome HTML5 Videos stop working if too many tabs are open - Memory issue?

后端 未结 4 1181
无人共我
无人共我 2021-01-05 08:39

I\'m using jQuery to dynamically write objects, and running videojs to init them. After I play a video, SOMETIMES when I try to play it again, it

4条回答
  •  自闭症患者
    2021-01-05 09:30

    There is a known bug with Chrome. It will not play the same video in multiple tabs at the same time. This is probably what you are running into if you are a developer and happen to have your page open in two tabs at the same time.

    The bug has been known for almost 5 years as of this writing. Feel free to visit the Chromium bug report and star the issue. Hopefully it will increase in priority for the Chrome devs.


    In the meanwhile, a workaround is to use a random query parameter in your video src. For example, instead of , use . This will break Chrome's caching mechanism and allow the same video to be streamed to two different tabs at the same time.

提交回复
热议问题