AlexxIT / WebRTC

Home Assistant custom component for real-time viewing of almost any camera stream using WebRTC and other technologies.
https://github.com/AlexxIT/Blog
MIT License
1.46k stars 172 forks source link

WebRTC Camera Needs Reload #446

Open philliptoronto opened 1 year ago

philliptoronto commented 1 year ago

So I have a very strange problem. Integration with HA was fine, all working well. I am using Ring & Nest Cameras. From time to time the Nest camera video does not come up, which is fine I think I can figure that out.

However what happens is every 5 mins or so, the integration seems to be come unavailable. Video does not show. Then if I "reload" the integration, everything works fine for the next 5 mins, then stops. Any idea what could cause this issue? I am using HA 2023.3.0

philliptoronto commented 1 year ago

Here is my HA script:

type: custom:webrtc-camera
entity: camera.shed
title: Zone 01
background: true
muted: true
mode: webrtc

It does bring up the popup, but no video until I "reload" the WebRTC Integration, then works for the next 5 mins or so.

JiggsNephron commented 1 year ago

I have the same issue with Nest doorbell camera. I have other cameras that work fine, and continue to work.

However, Nest's view turns gray with a loading spinner and shows "loading2" in the top right. When I reload the WebRTC integration, it works again for about 5 minutes.

image

HA card:

type: custom:webrtc-camera entity: camera.front_door muted: true

philliptoronto commented 1 year ago

I eventually ended up using browser mod for my nest cameras. In the list of cameras for webrtc, nest is not there.

On Mon, May 15, 2023 at 8:03 AM Richard @.***> wrote:

I have the same issue with Nest doorbell camera. I have other cameras that work fine, and continue to work.

However, Nest's view turns gray with a loading spinner and shows "loading2" in the top right. When I reload the WebRTC integration, it works again for about 5 minutes.

— Reply to this email directly, view it on GitHub https://github.com/AlexxIT/WebRTC/issues/446#issuecomment-1547726231, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACRLGIRYOTSMUA2JCMYXEGLXGILPLANCNFSM6AAAAAAVPCCFRU . You are receiving this because you authored the thread.Message ID: @.***>

JiggsNephron commented 1 year ago

It seems to be that the streaming URL changes, but the webRTC part doesn't know to ask for the new URL. Not sure. I'll just have to use the normal HA integrated streaming for now.

AlexxIT commented 1 year ago

Nest cameras opens their stream only for 5 min. Stupid API. RTSP link update functionality every 5 minutes is not supported yet