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
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
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 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
| Name | Type | Description |
|---|---|---|
file | File | A File object to read the new instance from. |
position | number | A value specifying the seek position in File at which to start reading. |
Returns
fromType
▸ Static fromType(type, extendedType?): Mpeg4BoxHeader
Constructs and initializes a new instance of Mpeg4BoxHeader with a specified box type and optionally extended type.
Parameters
| Name | Type | Description |
|---|---|---|
type | ByteVector | A ByteVector object containing the four byte box type. |
extendedType? | ByteVector | A ByteVector object containing the four byte box type. |