UNPKG

webm-duration-fix-electron

Version:

based on ts-ebml and support large file(than 2GB) and optimize memory usage during repair

30 lines (29 loc) 744 B
/** * based on ts-ebml and support large file,optimize memory usage during repair * * @param blob the blob you need to fix * @returns the blob that has been fixed * */ export declare function fixWebmDuration(blob: Blob): Promise<Blob>; interface Callback { (size: number, blobWithHeader: Blob): void; } export declare class FixWebmProcess { private _processBlob; private _nextBlob; private _end; private _decoder; private _reader; private _finish; private _callback; private _enableLog; constructor(); processBlob(blob: Blob): void; private fixWebmDuration; private LOG; finish(callback: Callback): void; setEnableLog(enable: boolean): void; private fixBlob; } export {};