Skip to content

eufy-mega / core/contracts / MediaFragment

Interface: MediaFragment

One fragmented-MP4 (CMAF) output unit from the native muxer. init (the ftyp+moov init segment) is present exactly once, on the first fragment; every fragment carries a moof+mdat media segment in data. Structural (plain Buffers) so it stays in core with no transport import.

Properties

data

ts
data: Buffer;

A media fragment (moof+mdat); may be empty on the init-only first emission.


init?

ts
optional init?: Buffer<ArrayBufferLike>;

The init segment (ftyp+moov), present only on the first emitted fragment.


keyframe

ts
keyframe: boolean;

Whether this fragment opens on a keyframe (a valid CMAF segment boundary).

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