/** * MSE Controller — Manages MediaSource and SourceBuffer for H.264 fMP4 playback. */ export declare class MSEController { private _video; private _mediaSource; private _sourceBuffer; private _queue; private _updating; private _initDone; constructor(video: HTMLVideoElement); /** * Initialize: create MediaSource, attach to video, create SourceBuffer. * @param initSegment The fMP4 init segment (ftyp + moov) * @param codec MIME codec string (default: avc1.42001f) */ init(initSegment: Uint8Array, codec?: string): Promise; /** * Append a media segment. Queues if a previous append is still in progress. */ appendSegment(segment: Uint8Array): Promise; /** * Remove buffered data older than keepSeconds before current time. */ trimBuffer(keepSeconds?: number): Promise; /** Signal end of stream */ endOfStream(): void; /** Get buffered time ranges */ get buffered(): TimeRanges | null; /** Get media duration */ get duration(): number; /** Clean up resources */ destroy(): void; private _append; private _onUpdateEnd; } //# sourceMappingURL=mse-controller.d.ts.map