home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
4.06k stars 2.78k forks source link

Live Camera Streams Often Fall Behind #20488

Closed AngellusMortis closed 5 hours ago

AngellusMortis commented 7 months ago

Checklist

Describe the issue you are experiencing

The video player for live camera streams often falls behind if there is an interruption to video playback. Interruption to video playback can include (but not limited to):

Describe the behavior you expected

Video players should detect and automatically correct when they are lagging behind more than expected.

Steps to reproduce the issue

  1. Add picture entity card to any dashboard pointing to a camera with a live video stream, ideally one with a timestamp for comparison
  2. Load the dashboard and watch the video stream for a few seconds. Note how many seconds the stream is behind
  3. (on Web) Switch to another tab and then go to another application. (on mobile) Switch to another app.
  4. Wait about 30 seconds
  5. Go back to HA dashboard, camera should resume where it was when it was suspended/de-prioritized because it was put in the background.

What version of Home Assistant Core has the issue?

core-2024.4.2

What was the last working version of Home Assistant Core?

Never

In which browser are you experiencing the issue with?

Edge/Chrome/Firefox/everything

Which operating system are you using to run this browser?

Windows 10/Windows 11/Android 12-14

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

This has been a long-standing Home Assistant frontend issue. The video player is not able to self-heal and realize when it has fallen behind in playback. This is often reported as video delay, but this is not related to the HLS video delay issue that causes a 15-30 second video delay. You can easily reproducible it with a LL-HLS setup that starts with an initial 1-2 second video delay that can easily become 30 seconds or even a few minutes.

The only way to "solve" the delay is to reload the page. Which for mobile apps is not really possible. The video player itself should be able to auto-correct these delays.

github-actions[bot] commented 4 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Daniel-dev22 commented 4 months ago

Still a thing.

pedro639 commented 3 months ago

Yup, still a thing

github-actions[bot] commented 1 week ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.