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