@mega-yfue/eufy-sdk 0.4.0-beta.32 → 0.4.0-beta.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -435,8 +435,17 @@ export declare class P2PSession extends EventEmitter {
435
435
  * "direct" commands (e.g. CAMERA_SWITCH 1035) carry a binary struct, not JSON.
436
436
  */
437
437
  sendRawLevel2Bytes(payload: Buffer, channel: number, outerCmd?: number, signCode?: number): boolean;
438
- /** Stop the realtime media stream (`CMD_STOP_REALTIME_MEDIA`, 1004) on a camera `channel`. */
439
- stopLiveMedia(channel?: number, accountId?: string): void;
438
+ /**
439
+ * Stop the realtime media stream (`CMD_STOP_REALTIME_MEDIA`, 1004) on a camera `channel`, in the shape
440
+ * its runtime topology takes, as {@link startLiveMedia} selects its start:
441
+ * - `homeBaseAttached`: `CMD_SET_PAYLOAD` (1350) wrapping `{cmd:1004, mChannel:channel}` at level-2.
442
+ * - own-session at level-2: the direct 1004 frame whose entire plaintext is the camera channel as a
443
+ * `uint32`, the same 4-byte body as the attached talkback frames. The app sends this frame on closing
444
+ * an own-session camera's live view; the camera stops streaming on it within a second, and keeps
445
+ * streaming through the 1350-wrapped form.
446
+ * - without a level-2 key: the bare 1004 command.
447
+ */
448
+ stopLiveMedia(channel?: number, accountId?: string, homeBaseAttached?: boolean): void;
440
449
  /**
441
450
  * Open the device's talkback (host→device audio) path on a camera `channel`, after which
442
451
  * {@link sendAudioFrame} is accepted until {@link stopTalkback}. Two protocols, selected by runtime
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mega-yfue/eufy-sdk",
3
- "version": "0.4.0-beta.32",
3
+ "version": "0.4.0-beta.33",
4
4
  "description": "One typed TypeScript client for the Anker eufy v6 cloud — capability-driven devices, realtime events over P2P/MQTT/push, and live media",
5
5
  "license": "Apache-2.0",
6
6
  "author": "mega-yfue",