Skip to content

Get snaphot while ringing #604

Answered by dgreif
Tiffytaff asked this question in Q&A
Apr 8, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

This is a great place to ask 😄. First, it's important to know which type of camera you are using. If it is a camera equipped with a battery, you won't be able to pull a new snapshot while recording is in progress. See https://github.com/dgreif/ring/wiki/Snapshot-Limitations for details.

Beyond that limitation, it's hard to say what the exact problem is. pict will be a Buffer, and you should be able to send that as a response with express, but I don't work with express enough to know the right way to do that. Google should be able to provide a decent answer on that one 😉

Regarding getting the snapshot in the onNewDing callback, you can add async to the callback like camera.onNewDing.subscr…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Tiffytaff
Comment options

@dgreif
Comment options

@Tiffytaff
Comment options

Answer selected by dgreif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants