diff options
| author | Luke Hoersten <[email protected]> | 2026-06-30 20:35:45 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-06-30 20:35:45 -0500 |
| commit | 39aeeff0bcdfaa5ac4520e1fc7b90266c761c3f5 (patch) | |
| tree | a92b47133a9dd9aa96af0429c0c2784e41f5279f /scrypted/README.md | |
| parent | d71bdc9167fda3d5401ec3212a9d2269da7002fd (diff) | |
scrypted: gate snapshot POST on the live stream not yet painting
Now that the prebuffered stream paints in ~0.7s, the parallel snapshot usually
loses the race and, if slow (a Unifi takePicture cache-miss can be several
seconds), would land after live video and overpaint it with a staler still.
pushSnapshot takes a shouldPaint predicate; startStream passes
() => !firstStreamFrameSeen (flipped by the ffmpeg first-frame handler), so a
snapshot that finishes after the stream is already painting is dropped before
the POST. Preserves the snapshot as a gap-filler for the slow paths (live-edge
fallback / cold prebuffer) where the stream hasn't painted yet.
Diffstat (limited to 'scrypted/README.md')
0 files changed, 0 insertions, 0 deletions
