Skip to content

@mega-yfue/eufy-sdk / 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

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.