ring-client-api RingCamera.streamVideo() no longer works with active ding/session

Created on 2 Dec 2019  路  6Comments  路  Source: dgreif/ring

Repro steps:

  1. Manually ring doorbell
  2. Start browser-example npm run browser-example

Does not generate any m3u8 or .ts files for an active ding/session and hangs on the streamVideo() call.

When there is no active session or ding and the example is ran it will create a live session and works as you'd expect.

Most helpful comment

I don't actually use homebridge. I'm using your node ring-client-api (https://www.npmjs.com/package/ring-client-api) with a module I created for MagicMirror(https://magicmirror.builders/) called MMM-Ring(https://github.com/DustinBryant/MMM-Ring). All of a sudden we stopped getting the live video feed. As I was debugging and figuring out what was going on I noticed it would hang on the streamVideo() call and never got to the point where it was generating the m3u8 or ts file types in the public folder designated with the ffmpeg option parameters. I decided to get a fresh clone of this repo and noticed the same issue exists in the browser-example where they hadn't before.

All 6 comments

@DustinBryant sorry for the slow response. Have you still been noticing issues with my homebridge plugin, but can try the example you gave it it's still failing for you

I don't actually use homebridge. I'm using your node ring-client-api (https://www.npmjs.com/package/ring-client-api) with a module I created for MagicMirror(https://magicmirror.builders/) called MMM-Ring(https://github.com/DustinBryant/MMM-Ring). All of a sudden we stopped getting the live video feed. As I was debugging and figuring out what was going on I noticed it would hang on the streamVideo() call and never got to the point where it was generating the m3u8 or ts file types in the public folder designated with the ffmpeg option parameters. I decided to get a fresh clone of this repo and noticed the same issue exists in the browser-example where they hadn't before.

Any updates in this? This was one of the few things that made ring worthwhile.

I did some debugging and posted on issue #205.
This came down to the getPublicIp function not working for me, which is using public-ip package. The utils.ts file already has a backup to use Google STUN server to determine this and that works fine.

After that change, atleast running the example-recording works just fine.

@DustinBryant please check out https://github.com/dgreif/ring/issues/211#issuecomment-570231847 and let me know if v5.12.1 fixes the issue for you

@pelaxa and @dgreif , this has fixed my issue. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

donavanbecker picture donavanbecker  路  7Comments

david-olshefski picture david-olshefski  路  3Comments

parchmaf picture parchmaf  路  3Comments

donavanbecker picture donavanbecker  路  5Comments

divemasterjm picture divemasterjm  路  7Comments