@mega-yfue/eufy-sdk 0.5.0-beta.25 → 0.5.0-beta.26

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.
@@ -488,6 +488,8 @@ export type VideoCodec = "h264" | "h265" | "av1";
488
488
  * headers promise decodes to no picture at all.
489
489
  */
490
490
  export interface LiveVideoFrame {
491
+ /** Source-reported unsigned 32-bit timestamp; unit and clock origin are unspecified. */
492
+ sourceTimestamp?: number;
491
493
  /** True on an IDR — a unit a consumer may begin decoding at, never a continuation of an earlier one. */
492
494
  keyframe: boolean;
493
495
  /**
package/dist/index.js CHANGED
@@ -17751,7 +17751,13 @@ function beginsAccessUnit(body) {
17751
17751
  return body[2] === 1 || body[2] === 0 && body[3] === 1;
17752
17752
  }
17753
17753
  function unitOf(header, data) {
17754
- return { keyframe: header.keyframe, width: header.width, height: header.height, data };
17754
+ return {
17755
+ sourceTimestamp: header.timestamp,
17756
+ keyframe: header.keyframe,
17757
+ width: header.width,
17758
+ height: header.height,
17759
+ data
17760
+ };
17755
17761
  }
17756
17762
 
17757
17763
  // dist/transport/p2p/annexb.js
@@ -18280,6 +18286,7 @@ var LiveStream = class extends EventEmitter3 {
18280
18286
  this.lastCodec = sniffAnnexbCodec(unit.data) ?? this.lastCodec;
18281
18287
  this.settleKeepalive();
18282
18288
  this.emit("video", {
18289
+ sourceTimestamp: unit.sourceTimestamp,
18283
18290
  keyframe: unit.keyframe,
18284
18291
  width: unit.width,
18285
18292
  height: unit.height,