@svta/common-media-library
Version:
A common library for media playback in JavaScript
19 lines • 690 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';
/**
* Find a box from an IsoView that matches a filter function
*
* @param raw - The raw ISO data
* @param config - The configuration for the IsoView
* @param fn - The filter function
*
* @returns The first box that matches the filter function
*
* @group ISOBMFF
*
* @beta
*/
export declare function findBox<T extends IsoBmffBox = IsoBmffBox>(raw: IsoData | Iterable<IsoBmffBox>, fn: BoxFilter<T>, config?: IsoViewConfig): T | null;
//# sourceMappingURL=findBox.d.ts.map