Class: Mpeg4BoxHeader

October 29, 2023 · View on GitHub

node-taglib-sharp / Exports / Mpeg4BoxHeader

Class: Mpeg4BoxHeader

Provides support for reading and writing headers for ISO/IEC 14496-12 boxes.

Table of contents

Accessors

Methods

Accessors

boxType

get boxType(): ByteVector

Gets the type of box represented by the current instance.

Returns

ByteVector


dataSize

get dataSize(): number

Gets the size of the data in the box described by the current instance.

Returns

number


extendedType

get extendedType(): ByteVector

Gets the extended type of the box represented by the current instance.

Returns

ByteVector


headerSize

get headerSize(): number

Gets the size of the header represented by the current instance.

Returns

number


position

get position(): number

Gets the position box represented by the current instance in the file it comes from.

Returns

number


totalBoxSize

get totalBoxSize(): number

Gets the total size of the box described by the current instance.

Returns

number

Methods

render

render(): ByteVector

Renders the header represented by the current instance.

Returns

ByteVector

ByteVector Rendered version of the current instance.


fromFileAndPosition

Static fromFileAndPosition(file, position): Mpeg4BoxHeader

Constructs and initializes a new instance of Mpeg4BoxHeader by reading it from a specified seek position in a specified file.

Parameters

NameTypeDescription
fileFileA File object to read the new instance from.
positionnumberA value specifying the seek position in File at which to start reading.

Returns

Mpeg4BoxHeader


fromType

Static fromType(type, extendedType?): Mpeg4BoxHeader

Constructs and initializes a new instance of Mpeg4BoxHeader with a specified box type and optionally extended type.

Parameters

NameTypeDescription
typeByteVectorA ByteVector object containing the four byte box type.
extendedType?ByteVectorA ByteVector object containing the four byte box type.

Returns

Mpeg4BoxHeader