Skip to content

eufy-mega / model/capabilities / CameraActions

Type Alias: CameraActions

ts
type CameraActions = object;

Bound camera controls — the object returned by dev.camera(). Control methods are always present; the media methods (snapshot/snapshotLive/live/record) are present only when the device is bound to a live client with a MediaProvider — hence optional. Their signatures mirror MediaProvider exactly (indexed access keeps them in lockstep).

Properties

enabled?

ts
readonly optional enabled?: boolean;

Whether the camera is powered on (property enabled).


imageFlipped?

ts
readonly optional imageFlipped?: boolean;

Whether the image is rotated 180° (property imageFlipped).


live?

ts
optional live?: MediaProvider["live"];

Open a managed live stream (present only when bound to a media provider).


nightVision?

ts
readonly optional nightVision?: number;

Night-vision mode (NightVision value; property nightVision).


openReadable?

ts
optional openReadable?: MediaProvider["openReadable"];

Open a node:stream Readable of the live feed (present only when bound to a media provider).


record?

ts
optional record?: MediaProvider["record"];

Record N seconds → mp4/h264 buffer (present only when bound to a media provider).


recordFragments?

ts
optional recordFragments?: MediaProvider["recordFragments"];

Continuous fragmented-MP4 (CMAF) recording (present only when bound to a media provider).


snapshot?

ts
optional snapshot?: MediaProvider["snapshot"];

Latest stored still (present only when bound to a media provider).


snapshotLive?

ts
optional snapshotLive?: MediaProvider["snapshotLive"];

Fresh still from a short live burst (present only when bound to a media provider).


videoQuality?

ts
readonly optional videoQuality?: number;

Video record-quality tier (VideoQuality value; property videoQuality).


watermark?

ts
readonly optional watermark?: number;

On-screen watermark/OSD mode (Watermark value; property watermark).

Methods

off()

ts
off(): Promise<void>;

Power the camera off.

Returns

Promise<void>


on()

ts
on(): Promise<void>;

Power the camera on.

Returns

Promise<void>


setEnabled()

ts
setEnabled(v): Promise<void>;

Set camera power on/off.

Parameters

v

boolean

Returns

Promise<void>


setImageFlipped()

ts
setImageFlipped(v): Promise<void>;

Rotate the image 180° (true = flipped).

Parameters

v

boolean

Returns

Promise<void>


setNightVision()

ts
setNightVision(mode): Promise<void>;

Set night-vision mode (NightVision: Off / Infrared / FullColor).

Parameters

mode

number

Returns

Promise<void>


setPrivacy()

ts
setPrivacy(v): Promise<void>;

Enable/disable privacy mode (multi-frame burst).

Parameters

v

boolean

Returns

Promise<void>


setStatusLed()

ts
setStatusLed(v): Promise<void>;

Toggle the status LED.

Parameters

v

boolean

Returns

Promise<void>


setVideoQuality()

ts
setVideoQuality(quality): Promise<void>;

Set video record quality — a resolution NAME (VideoQuality) or a raw tier 1/2/3.

Parameters

quality

number | VideoQualityName

Returns

Promise<void>


setWatermark()

ts
setWatermark(mode): Promise<void>;

Set the on-screen watermark/OSD overlay (Watermark: Off / Timestamp / TimestampAndLogo).

Parameters

mode

number

Returns

Promise<void>

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