import Mpeg4Box from "./boxes/mpeg4Box"; import Mpeg4BoxHeader from "./mpeg4BoxHeader"; import { ByteVector } from "../byteVector"; import { File } from "../file"; /** * This class provides support for reading boxes from a file. * @internal */ export default class Mpeg4BoxFactory { /** * Creates a box by reading it from a file given its header, parent header, handler, and index in its parent. * @param file A {@link File} object containing the file to read from. * @param header A {@link Mpeg4BoxHeader} object containing the header of the box to create. * @param handlerType Type of the handler box containing the handler that applies to the new box. * @param parentHeader Header of the parent of this box. Optional. * @returns Mpeg4Box {@link Mpeg4Box} box created from the position in the file */ static createBox(file: File, header: Mpeg4BoxHeader, handlerType?: ByteVector, parentHeader?: Mpeg4BoxHeader): Mpeg4Box; private static loadSampleDescriptors; private static loadChildren; }