@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.