question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to take a snapshot

See original GitHub issue

Bug Report

Describe the Bug

This is not really a bug, but forgive me that I could not find another place to open this for discussion… I am trying to make my code not only expose a livestream using your browser example which works fine, but also to make a regular snapshot. I am not sure how to approach this? Would you suggest adding another output to the sipSession that calls ffmpeg to save snapshots every X seconds? Or use the getSnapShot() function? I am not even sure what that will return.

To Reproduce

Steps to reproduce the behavior:

  • Create an ApiClient
  • Attempt to …
  • See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots/Logs

If applicable, add screenshots and log output to help explain your problem.

Additional context

Add any other context about the problem here.

Environment

  • OS: [e.g. Raspbian]
  • Node.js: [e.g. 12.14.1]
  • NPM: [e.g 6.13.4]
  • ring-client-api: [e.g 6.0.3]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dgreifcommented, Feb 14, 2020

Yeah, that’s because Ring is odd about when you can fetch a snapshot. If you call getSnapshot(true), it will return “stale” snapshots, as in they may not be from right that second.

0reactions
dgreifcommented, Feb 21, 2020

Snapshot limitations are detailed in https://github.com/dgreif/ring/wiki/Battery-Cam-Snapshots. You can call getSnapshot(true) while live streaming, but there is no guarantee that you will receive a snapshot that isn’t stale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to take a screenshot
Android ; hold down at once, Volume Down, and, Power ; Where do I find my screenshots? ; Look for a Screenshots folder...
Read more >
Take a screenshot or record your screen on your Android device
Take a screenshot · Open the screen that you want to capture. · Depending on your phone: Press the Power and Volume down...
Read more >
Take a screenshot on your iPhone - Apple Support
How to take a screenshot on iPhone models with Touch ID and side button. Press the side button and the Home button at...
Read more >
How to Take a Screenshot on Any Device - PCMag
Hit the Shift + Ctrl + Show windows, then select Screenshot and capture the full screen, part of the screen, or a specific...
Read more >
8 ways to take a screenshot on Windows 10 and Windows 11
A screenshot of a Windows keyboard, with the Print Screen key highlighted. ... The easiest way to take a screenshot of your entire...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found