UNPKG

@svta/common-media-library

Version:
21 lines 611 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.findBoxByType = findBoxByType; const findBox_js_1 = require("./findBox.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 */ function findBoxByType(raw, type, config = {}) { return (0, findBox_js_1.findBox)(raw, (box) => box.type === type, config); } //# sourceMappingURL=findBoxByType.js.map