-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Camera streams do not show when more than 6 cameras in one dashboard with live option #6879
Comments
@hunterjm Do you have an idea of what this could be? |
I don't, I can't reproduce either by adding duplicate cameras. Two things: |
Tried in the iOS app, and it can't render them all in the mobile application, some of them show an image that is frozen, others show the video, and others still are empty and not loading. Either way, clicking into the stream works when it's rendering just one video at a time :) |
@BoneheadFraggle Do oyu have any other errors (other than the 404 segment errors) that are in your browser console? |
Also, do any of your cameras have audio? Since that was introduced in 0.115 so could be causing issues if multiple video players are trying to play audio at the same time... maybe? |
@hunterjm Yes, 8 of the 13 cameras have audio. Unfortunately, I had to revert back to 0.114.4 due to low Family Acceptance Factor in the beta, so we may need to put this on hold until I get a test system up and running and can reproduce it again. Should I close the issue this in the mean time? |
Back on 0.115, now on 0.115.0b4. |
@hunterjm When using ordinary SSL/443 with Let's encrypt the above occurs, only 6 cameras load. It sounds strange, but I have tried back and forth 3 times now. With different browsers and cleared cache in between. |
Since @hunterjm doesn't seem to have the same limit and because you don't see this issue when using NGINX, this appears to be a resource issue on the server. NGINX will help by offloading the web serving/encryption from HA onto a different process/core. |
Just tried this again, now with 0.117.0b5.
Not using All of them are setup like this:
Nothing in the logs. Anything else I can try to provide more info? |
@BoneheadFraggle It's possible that when HA serves the connections to your browser end to end, the number of connections from HA to your browser may get saturated (most browsers have a limit of 6 simultaneous connections to a domain. When you use nginx as a proxy, especially if nginx and HA are on the same machine, nginx can essentially act as a buffer, allowing connections to catch up even if they periodically get bogged down. |
If you are correct (which I think you are), shouldn't it be quite common for this to occur? This is not a problem for me anymore since I worked around it with nginx, but I am still curious so I just dug up an old Internet Explorer to try if I got 11 cams. But HA didn't work at all in IE so that didn't give any more info. Tried Edge on Android and Firefox on Android outside nginx and only 6 cams are loaded. So the "error" is consistent, and that's good. Feel free to ping me if you want me to test something, otherwise I think you can close it with a probable reason to the phenomenon. |
If things are fast enough the connection limit shouldn't matter, so maybe it's related to some combination of video size, network bandwidth, and processing/serving speed? |
Checklist
The problem
I have 13 cameras in Picture Glance Cards on a dashboard.
All cameras should show picture, but only 6 does. The other will not load.
It is not related to specific cameras, but the number (6) and the option
camera_view: live
Expected behavior
The dashboard worked fine until 0.114.4, so I assume it is supposed work in 0.115 as well.
Steps to reproduce
Environment
State of relevant entities
Problem-relevant configuration
Javascript errors shown in your browser console/inspector
Additional information
The text was updated successfully, but these errors were encountered: