eufy-mega / core/contracts / LiveStreamHandle
Interface: LiveStreamHandle
The consumer-facing surface of a live stream — a STRUCTURAL subset of the concrete transport/p2p/LiveStream (an EventEmitter), so the media contract can live in core without importing transport. The concrete LiveStream is assignable to this.
Methods
nudge()?
ts
optional nudge(): void;Re-issue the media-start command (start-race retry / keepalive nudge). Optional.
Returns
void
on()
Call Signature
ts
on(event, listener): this;Parameters
event
"video"
listener
(frame) => void
Returns
this
Call Signature
ts
on(event, listener): this;Parameters
event
"audio"
listener
(data) => void
Returns
this
Call Signature
ts
on(event, listener): this;Parameters
event
"start" | "stop"
listener
() => void
Returns
this
Call Signature
ts
on(event, listener): this;Parameters
event
"error"
listener
(err) => void
Returns
this
Call Signature
ts
on(event, listener): this;Battery-budget elapsed — extend to keep streaming or let it auto-stop (battery cameras only).
Parameters
event
"budget"
listener
(notice) => void
Returns
this
start()
ts
start(): this;Returns
this
stop()
ts
stop(): void;Returns
void