ring: Live streaming bugs with v8
Live Streaming Issue
Describe the live streaming issue
Have two different bugs, but all surrounding live streaming. Something broke in homebridge-ring v8 for me as far as live streaming goes.
-
Snapshots work fine. But, if I try to live stream, I see the circle “loader” spinning in the video. Is this expected? I’m not sure it’s working at all. It was working fine on an earlier version of homebridge-ring (7.X). The logs indicate it should be working just fine, but I don’t see any streaming happening. If it is expected, then it’s a bit confusing behavior, though not sure if it can be turned off.
-
If I live stream, and then force quit the home app while viewing the live stream itself, homebridge-ring has a very difficult time recovering. Basically prevents viewing of the live stream at all, even after reopening the home app. There is an overlay on the video that says “No Response. Wait until someone else in this home stops viewing this camera and try again”.
This is akin to #157 that I reported earlier, but seems now it’s no longer recoverable. Seems I have to restart homebridge to fix it now.
Screenshots/Logs
For issue 1, above:
[5/18/2020, 6:38:08 AM] [Ring] Snapshot for Front Door is still within its life time (19.475s old)
[5/18/2020, 6:38:10 AM] [Ring] Preparing Live Stream for Front Door
[5/18/2020, 6:38:12 AM] [Ring] Waiting for stream data from Front Door (1.682s)
[5/18/2020, 6:38:12 AM] [Ring] Received stream data from Front Door (2.128s)
[5/18/2020, 6:38:14 AM] [Ring] Streaming active for Front Door
[5/18/2020, 6:38:28 AM] [Ring] Stopped Live Stream for Front Door
For issue 2, above:
1|homebridge | [5/18/2020, 6:40:30 AM] [Ring] Preparing Live Stream for Garage
1|homebridge | [5/18/2020, 6:40:31 AM] [Ring] sip INVITE request failed with status 401
1|homebridge | [5/18/2020, 6:40:31 AM] [Ring] Failed to prepare stream for Garage (0.487s)
1|homebridge | [5/18/2020, 6:40:31 AM] [Ring] Error: sip INVITE request failed with status 401
1|homebridge | at sipClient.send (/usr/lib/node_modules/homebridge-ring/lib/api/sip-call.js:117:28)
1|homebridge | at searching (/usr/lib/node_modules/homebridge-ring/node_modules/sip/sip.js:1316:5)
1|homebridge | at /usr/lib/node_modules/homebridge-ring/node_modules/sip/sip.js:1297:41
1|homebridge | at Object.message (/usr/lib/node_modules/homebridge-ring/node_modules/sip/sip.js:1103:7)
1|homebridge | at Object.signal (/usr/lib/node_modules/homebridge-ring/node_modules/sip/sip.js:982:55)
1|homebridge | at /usr/lib/node_modules/homebridge-ring/node_modules/sip/sip.js:1344:24
1|homebridge | at onMessage (/usr/lib/node_modules/homebridge-ring/node_modules/sip/sip.js:558:9)
1|homebridge | at content (/usr/lib/node_modules/homebridge-ring/node_modules/sip/sip.js:493:7)
1|homebridge | at headers (/usr/lib/node_modules/homebridge-ring/node_modules/sip/sip.js:480:9)
1|homebridge | at TLSSocket.<anonymous> (/usr/lib/node_modules/homebridge-ring/node_modules/sip/sip.js:504:27)
1|homebridge | at TLSSocket.emit (events.js:198:13)
1|homebridge | at addChunk (_stream_readable.js:288:12)
1|homebridge | at readableAddChunk (_stream_readable.js:265:13)
1|homebridge | at TLSSocket.Readable.push (_stream_readable.js:224:10)
1|homebridge | at TLSWrap.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
Recommended solution
Not clear what the issue is.
Environment
- Ring Camera: [e.g. Stickup Cam Battery]
- OS: Raspbian GNU/Linux 10 (buster)
- Node.js: v10.20.1
- NPM: v6.14.5
- homebridge-ring v8.2.0 (but, was working fine before the 8.X upgrade)
- homebridge v1.1.0
Network Environment
Everything is on the same mesh Wifi network. I can provide more details here if it would be helpful, but it doesn’t seem like this is an issue given that 1) it was working fine before in v7.X (last release before v8), and 2) snapshots, etc. are being pulled just fine.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 58 (6 by maintainers)
@dgreif
I am now running homebridge-ring v8.3.0-alpha.2 and live stream/video is working!!
Thanks for your work on this plugin!! 😃
It’s amazing actually how much faster it is now @dgreif 👍
To install open terminal window and enter:
sudo npm i -g homebridge-ring@v8.3.0-alpha.2Restart Homebridge manually.Nope, you are fine.
It just refused to execute your command, that’s all.
I don’t know exactly how, but it’s working now. I tried to troubleshoot and isolate any potential fixes or new issues. After various attempts to reinstall the plugin and roll back to old versions did not work, I started focusing on my network. Gave my main router a restart and now I’m good to go. Let’s see if it sticks.
Aha that makes sense, mines a 1st gen powered by doorbell but does have a battery too! At least it’s not something wrong at my end!
Thanks for all the work on this, you’ve done a great job!
@LordZork “sudo” is the magic word 😉
Just wanted to give a quick update since this thread seems to be getting hit hard lately. I have been spending all of my free time over the last two weeks working on more reliable live streaming. Since Ring has no documentation, it requires a lot of trial and error, but I think I’m very close and have figured out how Ring avoids NAT issues on any network. I’m hoping to release an alpha version in the next couple days that all of you can test out. The only downside is it will be dependent on ffmpeg. Ffmpeg is automatically included in the plugin unless you are on a really old os, so this shouldn’t be a problem for the majority of users. For now, please hold tight until I am able to release my changes.
@durosity I also rolled back versions of the plugin to 8.0 & 7.2 but didn’t get it working again. I completely removed it and reinstalled but that also didn’t work. I even did A clean reinstall of FFMPEG for sake of the new two-way audio feature. It wasn’t until moving to my network that I fixed it. Try restarting your modem and router. If it helps, I have an AirPort Extreme + express in bridge mode. My homebridge up with an assigned static IP, but otherwise no specific ports or custom settings. Restarted everything and got video working.
im in this situation
Not me. HB running on a raspberry pi. Viewing in the home app on iPhone.
I just wanted to confirm that I have seen this issues some as well. I haven’t pinned down the exact problem yet, but will hopefully get an update out this weekend.
I am seeing the same issue on v8.20 with all of my cameras, snapshots are updating fine however trying to stream doesn’t work. The logs show the following:
The “No Response” overlay comes up when the
[Ring] Stopped Live Stream for Garagemessage is printed in the logs.Also, not sure if it’s helpful, but the only two unusual aspects of my config would be: