@mega-yfue/eufy-sdk 0.5.0-beta.32 → 0.5.0-beta.34

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.
@@ -17,7 +17,8 @@ export declare class Fmp4Muxer {
17
17
  private baseDecodeTime;
18
18
  private fragTicks;
19
19
  private samples;
20
- private lastVideoTimestampMs?;
20
+ /** Ticks from the first video sample's start to the newest sample's end, at its provisional duration. */
21
+ private videoTicks;
21
22
  private readonly audioRequested;
22
23
  private audioCodec?;
23
24
  /** Decoder config of an AAC-ELD track, taken from its frames; absent for AAC-LC, whose `esds` config is fixed. */
@@ -37,6 +38,10 @@ export declare class Fmp4Muxer {
37
38
  * Push one access unit. Returns any completed segments: the `init` on the first keyframe, and/or a
38
39
  * media fragment when this frame closed the open one. Returns `undefined` if nothing is emitted yet
39
40
  * (e.g. delta frames before the first keyframe).
41
+ *
42
+ * A sample lasts until the next frame's `timestampMs`, measured from the first keyframe's, so the video
43
+ * timeline follows the arrival clock; a frame that shares the previous one's timestamp leaves that
44
+ * sample one tick long, and the next frame's duration absorbs the difference.
40
45
  */
41
46
  push(frame: LiveVideoFrame, timestampMs?: number): MediaFragment | undefined;
42
47
  /**
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Strip a token the gateway echoed back into its own error message.
3
+ *
4
+ * `"token not exist, token = <the rejected token>"` is the vendor's wording, and that message travels into the
5
+ * error the SDK surfaces. A credential that has just been rejected is still a credential, and it is
6
+ * never the part of the message that explains anything.
7
+ */
8
+ export declare function withoutTokenEcho(text: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mega-yfue/eufy-sdk",
3
- "version": "0.5.0-beta.32",
3
+ "version": "0.5.0-beta.34",
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",