@mega-yfue/eufy-sdk 0.5.0-beta.33 → 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.
- package/dist/index.js +14 -9
- package/dist/index.js.map +2 -2
- package/dist/transport/p2p/fmp4.d.ts +6 -1
- package/package.json +1 -1
|
@@ -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
|
/**
|
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.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",
|