@svta/common-media-library
Version:
A common library for media playback in JavaScript
18 lines • 628 B
TypeScript
import type { IsoBmffBoxMap } from './boxes/IsoBmffBoxMap.js';
import type { IsoData } from './IsoData.js';
import type { IsoViewConfig } from './IsoViewConfig.js';
/**
* Find a box from an IsoView that matches a given type
*
* @param type - The type of box to find
* @param raw - The raw ISO data
* @param config - The configuration for the IsoView
*
* @returns The first box that matches the type
*
* @group ISOBMFF
*
* @beta
*/
export declare function findBoxByType<T extends keyof IsoBmffBoxMap>(raw: IsoData, type: T, config?: IsoViewConfig): IsoBmffBoxMap[T] | null;
//# sourceMappingURL=findBoxByType.d.ts.map