@mega-yfue/eufy-sdk / LiveSnapshotUnavailableReason
Type Alias: LiveSnapshotUnavailableReason
ts
type LiveSnapshotUnavailableReason =
| "no-keyframe"
| "source-failed"
| "undecodable-burst"
| "decoder-unavailable";Why MediaProvider.snapshotLive could not return a still.
no-keyframe— no clean keyframe arrived within the acquisition window, and the live source never reported a failure of its own. The source may simply be slower than the window allowed.source-failed— the live source reported a failure, so the burst will not arrive at all. Distinct fromno-keyframebecause it is known rather than merely elapsed, and it is known EARLY: a caller gets it instead of waiting out the window on a source that has already given up.undecodable-burst— a burst was collected but the decoder refused it. Per-attempt framing, not a property of the camera.decoder-unavailable— the decoder could not be run at all.