@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, so a prebuffer drain announces the configuration its retained media was coded under.