ring-hassio icon indicating copy to clipboard operation
ring-hassio copied to clipboard

+-10 second delay on livestream

Open jhooyberghs opened this issue 4 years ago • 8 comments

Hey @jeroenterheerdt , thanks for the great work on the plugin. I'm currently trying it out with my ring doorbell 2 and it all seems to work, except that I always have a delay of +-10 seconds when viewing.

Steps tried:

  1. I start the plugin
  2. I open up home assistant with the camera feed (tried with VLC too, same effect)
  3. I walk to my door, and all video has this 10s delay

When I watch the live feed with the official ring app, I don't have any delay (< 1s).

Do you experience the same?

jhooyberghs avatar Aug 21 '20 14:08 jhooyberghs

hmm, I have not seen this same problem no. It is slower, yes, but 10 seconds, no. Maybe ask if someone over at https://github.com/dgreif/ring has been same experience?

jeroenterheerdt avatar Aug 21 '20 17:08 jeroenterheerdt

I can confirm the same delay, using VLC or Home Assistant.

mspace00 avatar Aug 26 '20 20:08 mspace00

Any solution for this issue? Have also a delay for apporx 6 seconds

johanvh83 avatar Jan 21 '21 10:01 johanvh83

Any solution for this issue? Have also a delay for apporx 6 seconds

Same issue...lags behind about 10 - 15 seconds.

schergr avatar Feb 06 '21 23:02 schergr

hmm, I have not seen this same problem no. It is slower, yes, but 10 seconds, no. Maybe ask if someone over at https://github.com/dgreif/ring has been same experience?

Since you wrapped around dgreif, are you storing the refresh token as part of your implementation?

Refresh Token Expiration Ring has updated their refresh tokens so that they expire within a couple minutes of when they are used for the first time. This means that you basically only get to use a refresh token once, and need to keep the new refresh token that comes with the response.

For libraries that use ring-client-api, you can subscribe to api.onRefreshTokenUpdated to get the new refresh token each time a new one is created. This new refresh token should be stored wherever your library stores its configuration. See here for an example. If you are a user of homebridge-ring, this is done automatically for you, and your config.json will always be up-to-date with the last available refresh token.

schergr avatar Feb 06 '21 23:02 schergr

I also get around 6-7 secs delay on the live feed, other than works great, still working on battery feed drain issues though (see a sperate thread here for that though).

CharlesW2506 avatar Feb 11 '21 15:02 CharlesW2506

I can confirm this problem too

patsch9 avatar May 25 '21 12:05 patsch9

Many thanks for your great work! I was able to (quite easily) run it on TrueNAS. But I have the same issue, 10-12 seconds delay on live stream with Ring Doorbell Wired on very good wifi connection, Anyone was able to improve it?

adorobis avatar Nov 30 '21 09:11 adorobis