@mega-yfue/eufy-sdk 0.5.0-beta.57 → 0.5.0-beta.59
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.
- package/dist/client/eufy-mega.d.ts +13 -4
- package/dist/core/contracts.d.ts +12 -3
- package/dist/index.js +41 -24
- package/dist/index.js.map +2 -2
- package/dist/transport/p2p/readable-egress.d.ts +4 -0
- package/package.json +1 -1
|
@@ -17,11 +17,15 @@ import type { Consumer } from "./shared-live-source.js";
|
|
|
17
17
|
export interface ReadableEgressOptions {
|
|
18
18
|
/** Emit {@link LiveVideoFrame} objects instead of raw Annex-B bytes (default false = bytes). */
|
|
19
19
|
objectMode?: boolean;
|
|
20
|
+
/** Yield ReceivedVideoFrame envelopes with original source-arrival times; ignored in raw mode. */
|
|
21
|
+
arrivalTime?: boolean;
|
|
20
22
|
/** Readable highWaterMark (bytes, or object count in objectMode). */
|
|
21
23
|
highWaterMark?: number;
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
26
|
* Wrap a shared-source {@link Consumer} in a fresh Readable. The consumer is detached when the
|
|
25
27
|
* Readable is destroyed/ended, so callers own the lifetime by owning the stream.
|
|
28
|
+
* Frames arrive through onMedia; an empty video listener releases the keyframe-prime
|
|
29
|
+
* because ConsumerImpl replays it when the first video listener is added.
|
|
26
30
|
*/
|
|
27
31
|
export declare function openReadableFromConsumer(consumer: Consumer, opts?: ReadableEgressOptions): Readable;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mega-yfue/eufy-sdk",
|
|
3
|
-
"version": "0.5.0-beta.
|
|
3
|
+
"version": "0.5.0-beta.59",
|
|
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",
|