@svta/common-media-library
Version:
A common library for media playback in JavaScript
17 lines • 657 B
TypeScript
import type { IsoBmffBox } from './boxes/IsoBmffBox.js';
import type { BoxFilter } from './BoxFilter.js';
import type { IsoData } from './IsoData.js';
import type { IsoViewConfig } from './IsoViewConfig.js';
/**
* Filters boxes based on the given filter function.
*
* @param raw - The raw boxes to filter.
* @param config - The box parser configuration.
* @param fn - The filter function.
* @returns The filtered boxes.
*
* @group ISOBMFF
* @beta
*/
export declare function filterBoxes<T extends IsoBmffBox = IsoBmffBox>(raw: IsoData | Iterable<IsoBmffBox>, fn: BoxFilter<T>, config?: IsoViewConfig): T[];
//# sourceMappingURL=filterBoxes.d.ts.map