@mega-yfue/eufy-sdk 0.5.0-beta.79 → 0.5.0-beta.80
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.
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @module p2p/live-trace
|
|
13
13
|
*/
|
|
14
|
+
import type { LiveStreamStartFailureReason, LiveStreamStartStage } from "../../core/contracts.js";
|
|
14
15
|
import type { Logger } from "../../core/logger.js";
|
|
15
16
|
/** The message every startup trace is logged under. */
|
|
16
17
|
export declare const LIVE_TRACE_MESSAGE = "[live] start trace";
|
|
@@ -245,6 +246,19 @@ export type LiveTrace =
|
|
|
245
246
|
phase: "channel-silent";
|
|
246
247
|
silentMs: number;
|
|
247
248
|
outcome: "reasserted" | "declined";
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* A live start failed, with the facts of the `LiveStreamStartError` it was refused with.
|
|
252
|
+
*
|
|
253
|
+
* `errorName` is the upstream error's class name, present for `source-error` only; its message is never
|
|
254
|
+
* carried, because an upstream message can name a station.
|
|
255
|
+
*/
|
|
256
|
+
| {
|
|
257
|
+
phase: "start-failed";
|
|
258
|
+
reason: LiveStreamStartFailureReason;
|
|
259
|
+
stage: LiveStreamStartStage;
|
|
260
|
+
attempts: number;
|
|
261
|
+
errorName?: string;
|
|
248
262
|
};
|
|
249
263
|
/**
|
|
250
264
|
* Record one startup observation at debug level.
|
|
@@ -343,7 +343,8 @@ export declare class SharedLiveSource {
|
|
|
343
343
|
* at all, audio without a single video frame, or access units a decoder cannot begin at.
|
|
344
344
|
*
|
|
345
345
|
* Video takes precedence when both arrived: audio alongside video says nothing a caller needs, while video
|
|
346
|
-
* without a keyframe does.
|
|
346
|
+
* without a keyframe does. Every failed start is built here, so this is where its `start-failed` trace is
|
|
347
|
+
* emitted.
|
|
347
348
|
*/
|
|
348
349
|
private startFailure;
|
|
349
350
|
private onVideo;
|
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.80",
|
|
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",
|