mrlt8 / docker-wyze-bridge

WebRTC/RTSP/RTMP/LL-HLS bridge for Wyze cams in a docker container
GNU Affero General Public License v3.0
2.47k stars 151 forks source link

Bridge disconnects from all cameras after 5 to 6 hours and doesn't reconnect without intervention. #1010

Closed diggity801 closed 9 months ago

diggity801 commented 9 months ago

Hello,

I have an issue where the bridge works fine while it is connected to the cameras, but after some time - maybe even up to 12 hours - the camera feeds all go offline and I have to click the refresh button in the top right of all of them to get them to reconnect. Or select the reconnect to all cameras option.

Today all feeds went offline at 2:34 in the morning. It was up since around 7 PM the previous day so 7 hours or so seems correct and then all cameras go down.

Thank you for your assistance!

image

diggity801 commented 9 months ago

Actually, to get the cameras to reconnect, I just have to load the web UI, and then they start reconnecting. Do I have to permanently leave a webpage open to the web UI of the docker bridge to keep the cameras connected?

mrlt8 commented 9 months ago

The streams should reconnect on-demand, but can you see if setting ON_DEMAND=False helps keep them alive?

diggity801 commented 9 months ago

Would that go into the docker compose config file? Thank you!

mrlt8 commented 9 months ago

Yes, it should go under environment: like this:

environment:
    - ON_DEMAND=False
diggity801 commented 9 months ago

That fixed it! Thank you!

jeeftor commented 9 months ago

Or you can do:

environment:
  on_demand: False