Skip to content

@mega-yfue/eufy-sdk / TimedMediaFrame

Type Alias: TimedMediaFrame

ts
type TimedMediaFrame = 
  | {
  config: LiveVideoConfig;
  frame: LiveVideoFrame;
  kind: "video";
  timestampMs: number;
}
  | {
  frame: LiveAudioFrame;
  kind: "audio";
  timestampMs: number;
};

One media frame retained with its transport-arrival time for prebuffer continuity.

A video frame carries the coded configuration in force when it ARRIVED, because the item outlives that moment: it is the unit a keyframe-prime replays to a consumer that joined later and the unit a prebuffer drain hands over, and both have to announce the configuration their media was coded under rather than whichever one is current by the time they are delivered.

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.