You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using video.js to display local video files one video after the other by changing the video's src through OnVideoEnded makes the website become unresponsive after running for a while. The amount of time it takes for the website to become unresponsive (and the video to freeze) varies depending on hardware and video file size. For me, it takes an hour to become unresponsive by playing 1080p videos on my Raspberry Pi 4 8GB using the latest version of Chromium. Problem also appears on Chrome on a decent gaming PC as well as on Opera GX on a laptop.
Have a folder containing at least 26 1080p videos of ~5 minutes each and your html file
Create HTML website displaying a video using video.js (see codepen.io for inspiration)
Add "OnVideoEnded" event to execute a function that increment the index of your video files array then set the new src
(Optionally, you can change the video source every 5 seconds using setInterval. This can make the bug appear faster)
Let it run for maximum 24 hours if your hardware is epic; otherwise should take less than 12 hours
Videos eventually stop being displayed and the website becomes unresponsive. Clicking anywhere repeatedly should make the "Website is unresponsive" popup.
Errors
No response
What version of Video.js are you using?
8.3.0
Video.js plugins used.
No response
What browser(s) including version(s) does this occur with?
Chromium 126.0.6478.164-rpt1, Chrome Version 133.0.6943.60 (Official Build) (64-bit)
What OS(es) and version(s) does this occur with?
Windows 11 Home
The text was updated successfully, but these errors were encountered:
If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
Description
Using video.js to display local video files one video after the other by changing the video's src through OnVideoEnded makes the website become unresponsive after running for a while. The amount of time it takes for the website to become unresponsive (and the video to freeze) varies depending on hardware and video file size. For me, it takes an hour to become unresponsive by playing 1080p videos on my Raspberry Pi 4 8GB using the latest version of Chromium. Problem also appears on Chrome on a decent gaming PC as well as on Opera GX on a laptop.
Reduced test case
https://codepen.io/moino157/pen/raBXOem
Steps to reproduce
(Optionally, you can change the video source every 5 seconds using setInterval. This can make the bug appear faster)
Errors
No response
What version of Video.js are you using?
8.3.0
Video.js plugins used.
No response
What browser(s) including version(s) does this occur with?
Chromium 126.0.6478.164-rpt1, Chrome Version 133.0.6943.60 (Official Build) (64-bit)
What OS(es) and version(s) does this occur with?
Windows 11 Home
The text was updated successfully, but these errors were encountered: