@mega-yfue/eufy-sdk 0.5.0-beta.33 → 0.5.0-beta.35
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
|
-
|
|
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
|
/**
|
|
@@ -718,6 +718,7 @@ export declare class P2PSession extends EventEmitter {
|
|
|
718
718
|
* Frames are packed back to back, so a frame header can itself be cut by a datagram boundary. The start
|
|
719
719
|
* of a header left at the end of a datagram is carried into the next one rather than discarded; dropping
|
|
720
720
|
* it would lose that frame and every frame after it until a datagram happened to begin on a header.
|
|
721
|
+
* Payload fragments retain their original slices and are copied once, when the complete frame is delivered.
|
|
721
722
|
*/
|
|
722
723
|
private reassemble;
|
|
723
724
|
/**
|
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.35",
|
|
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",
|