eufy-mega / core/contracts / StreamBudgetNotice
Interface: StreamBudgetNotice
Battery-budget notice for a live stream. Battery/solar cameras drain while streaming, so the source bounds a continuous stream to a budget; when it elapses this fires and the host decides: call extend to keep streaming (re-pushes the budget), or do nothing and the source auto-stops after a short grace to protect the battery. Wired/mains cameras never emit this — they stream unbounded.
Properties
graceMs
ts
graceMs: number;Milliseconds left to call extend before the source auto-stops.
Methods
extend()
ts
extend(ms?): void;Re-push the budget by ms (default: another full budget), cancelling the pending auto-stop.
Parameters
ms?
number
Returns
void