Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website becomes unresponsive after playing different videos for hours #8977

Open
moino157 opened this issue Feb 7, 2025 · 1 comment
Open
Labels
needs: triage This issue needs to be reviewed

Comments

@moino157
Copy link

moino157 commented Feb 7, 2025

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

  1. Have a folder containing at least 26 1080p videos of ~5 minutes each and your html file
  2. Create HTML website displaying a video using video.js (see codepen.io for inspiration)
  3. 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)
  4. Let it run for maximum 24 hours if your hardware is epic; otherwise should take less than 12 hours
  5. 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

@moino157 moino157 added the needs: triage This issue needs to be reviewed label Feb 7, 2025
Copy link

welcome bot commented Feb 7, 2025

👋 Thanks for opening your first issue here! 👋

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: triage This issue needs to be reviewed
Projects
None yet
Development

No branches or pull requests

1 participant