Class: Mpeg4AppleElementaryStreamDescriptor
November 25, 2024 · View on GitHub
node-taglib-sharp / Exports / Mpeg4AppleElementaryStreamDescriptor
Class: Mpeg4AppleElementaryStreamDescriptor
This class extends FullBox to provide an implementation of an Apple ElementaryStreamDescriptor. This box may appear as a child of a IsoAudioSampleEntry and provided further information about an audio stream.
Hierarchy
-
↳
Mpeg4AppleElementaryStreamDescriptor
Table of contents
Accessors
- averageBitrate
- boxType
- bufferSizeDB
- data
- dataPosition
- dataSize
- decoderConfig
- dependsOnEsId
- flags
- handlerType
- hasChildren
- header
- maximumBitrate
- objectTypeId
- ocrEsId
- ocrStreamFlag
- size
- streamDependenceFlag
- streamId
- streamPriority
- streamType
- upStream
- urlFlag
- urlLength
- urlString
- version
Methods
- addChild
- clearChildren
- getChild
- getChildRecursively
- getChildren
- increaseDataPosition
- initializeFromHeader
- initializeFromHeaderFileAndHandler
- initializeFromType
- initializeFromTypeVersionAndFlags
- loadData
- removeChildByBox
- removeChildByType
- removeChildrenByBox
- fromFile
Accessors
averageBitrate
• get averageBitrate(): number
Gets the maximum average the stream described by the current instance.
Returns
number
boxType
• get boxType(): ByteVector
Gets the MPEG-4 box type of the current instance.
Returns
Inherited from
FullBox.boxType
bufferSizeDB
• get bufferSizeDB(): number
Gets the buffer size DB value the stream described by the current instance.
Returns
number
data
• get data(): ByteVector
Gets the data contained in the current instance.
Returns
Inherited from
FullBox.data
• set data(v): void
Sets the data contained in the current instance.
Parameters
| Name | Type |
|---|---|
v | ByteVector |
Returns
void
Inherited from
FullBox.data
dataPosition
• get dataPosition(): number
Gets the position of the data contained in the current instance, after any box specific headers.
Returns
number
Inherited from
FullBox.dataPosition
dataSize
• get dataSize(): number
Gets the size of the data contained in the current instance, minus the size of any box specific headers.
Returns
number
Inherited from
FullBox.dataSize
decoderConfig
• get decoderConfig(): ByteVector
Gets the decoder config data of stream described by the current instance.
Returns
dependsOnEsId
• get dependsOnEsId(): number
Gets the ES_ID of another elementary stream on which this elementary stream depends
Returns
number
flags
• get flags(): number
Gets the flags that apply to the current instance.
Returns
number
Inherited from
FullBox.flags
• set flags(value): void
Sets the flags that apply to the current instance.
Parameters
| Name | Type |
|---|---|
value | number |
Returns
void
Inherited from
FullBox.flags
handlerType
• get handlerType(): ByteVector
Gets the type of the handler box that applies to the current instance.
Returns
Inherited from
FullBox.handlerType
hasChildren
• get hasChildren(): boolean
Gets whether the current instance has children.
Returns
boolean
Inherited from
FullBox.hasChildren
header
• get header(): Mpeg4BoxHeader
Gets the header of the current instance.
Returns
Inherited from
FullBox.header
maximumBitrate
• get maximumBitrate(): number
Gets the maximum bitrate the stream described by the current instance.
Returns
number
objectTypeId
• get objectTypeId(): number
Gets the object type ID of the stream described by the current instance.
Returns
number
ocrEsId
• get ocrEsId(): number
Gets the OCR ES_ID
Returns
number
ocrStreamFlag
• get ocrStreamFlag(): boolean
Gets the OCR Stream Flag
Returns
boolean
size
• get size(): number
Gets the total size of the current instance as it last appeared on disk.
Returns
number
Inherited from
FullBox.size
streamDependenceFlag
• get streamDependenceFlag(): boolean
Gets a value indicating that a dependsOn_ES_ID will follow
Returns
boolean
streamId
• get streamId(): number
Gets the ID of the stream described by the current instance.
Returns
number
streamPriority
• get streamPriority(): number
Gets the priority of the stream described by the current instance.
Returns
number
streamType
• get streamType(): number
Gets the type of stream described by the current instance.
Returns
number
upStream
• get upStream(): boolean
Gets a value indicating that this stream is used for upstream information
Returns
boolean
urlFlag
• get urlFlag(): boolean
Gets a value indicating that a URL string will follow
Returns
boolean
urlLength
• get urlLength(): number
Gets the length of URL String
Returns
number
urlString
• get urlString(): string
Gets the URL string that points to the location of an SL-packetized stream by name.
Returns
string
version
• get version(): number
Gets the version number of the current instance.
Returns
number
Inherited from
FullBox.version
Methods
addChild
▸ addChild(box): void
Adds a specified box to the current instance.
See
Mpeg4Box object to add to the current instance.
Parameters
| Name | Type | Description |
|---|---|---|
box | Mpeg4Box | A |
Returns
void
Inherited from
clearChildren
▸ clearChildren(): void
Removes all children from the current instance.
Returns
void
Inherited from
getChild
▸ getChild<TBox>(type, predicate?): TBox
Gets a child box from the current instance by finding a matching box type.
See
ByteVector object containing the box type to match.
Type parameters
| Name | Type |
|---|---|
TBox | extends Mpeg4Box<TBox> |
Parameters
| Name | Type | Description |
|---|---|---|
type | ByteVector | A |
predicate? | (b: TBox) => boolean | Optional predicate to filter boxes with the provided type. |
Returns
TBox
TBox Box containing the matched box, or undefined if no match was found.
Inherited from
getChildRecursively
▸ getChildRecursively(type): Mpeg4Box
Gets a child box from the current instance by finding a matching box type, searching recursively.
See
ByteVector object containing the box type to match.
Parameters
| Name | Type | Description |
|---|---|---|
type | ByteVector | A |
Returns
Mpeg4Box Matching box, or undefined if no matching box was found
Inherited from
Mpeg4FullBox.getChildRecursively
getChildren
▸ getChildren<TBox>(type, predicate?): TBox[]
Gets all child boxes from the current instance by finding a matching box type.
See
ByteVector object containing the box type to match.
Type parameters
| Name | Type |
|---|---|
TBox | extends Mpeg4Box<TBox> |
Parameters
| Name | Type | Description |
|---|---|---|
type | ByteVector | A |
predicate? | (b: TBox) => boolean | Optional predicate to filter boxes with the provided type. |
Returns
TBox[]
Mpeg4Box[] Array of matching boxes, or undefined if no matching boxes was found.
Inherited from
increaseDataPosition
▸ increaseDataPosition(value): number
Increases the data position by a given value. This function can be used by boxes which extend from
See
Mpeg4Box to increase the data position, because the data is located after their box specific headers.
Parameters
| Name | Type | Description |
|---|---|---|
value | number | The value to add to the data position. |
Returns
number
number Data position before the increase.
Inherited from
Mpeg4FullBox.increaseDataPosition
initializeFromHeader
▸ Protected initializeFromHeader(header, handlerType?): void
Initializes a new instance of
See
- Mpeg4Box with a specified header and handler.
- Mpeg4BoxHeader object describing the new instance.
Parameters
| Name | Type | Description |
|---|---|---|
header | Mpeg4BoxHeader | A |
handlerType? | ByteVector | Type of the handler box object containing the handler that applies to the new instance, or undefined if no handler applies. |
Returns
void
Inherited from
Mpeg4FullBox.initializeFromHeader
initializeFromHeaderFileAndHandler
▸ Protected initializeFromHeaderFileAndHandler(header, file, handlerType): void
Initializes a new instance of FullBox with a provided header and handler by reading the contents from a specified file.
Parameters
| Name | Type | Description |
|---|---|---|
header | Mpeg4BoxHeader | A Mpeg4BoxHeader object containing the header to use for the new instance. |
file | File | A File object to read the contents of the box from. |
handlerType | ByteVector | Type of the handler box object containing the handler that applies to the new instance, or undefined if no handler applies. |
Returns
void
Inherited from
Mpeg4FullBox.initializeFromHeaderFileAndHandler
initializeFromType
▸ Protected initializeFromType(type): void
Initializes a new instance of
See
- Mpeg4Box with a specified box type.
- ByteVector object containing the box type to use for the new instance.
Parameters
| Name | Type | Description |
|---|---|---|
type | ByteVector | A |
Returns
void
Inherited from
Mpeg4FullBox.initializeFromType
initializeFromTypeVersionAndFlags
▸ Protected initializeFromTypeVersionAndFlags(type, version, flags): void
Initializes a new instance of FullBox with a provided header, version, and flags.
Parameters
| Name | Type | Description |
|---|---|---|
type | ByteVector | A ByteVector object containing the four byte box type. |
version | number | A value containing the version of the new instance. |
flags | number | A value containing the flags for the new instance. |
Returns
void
Inherited from
Mpeg4FullBox.initializeFromTypeVersionAndFlags
loadData
▸ loadData(file): ByteVector
Loads the data of the current instance from a specified file using the internal data position and size.
See
File from which the current instance was read and from which to read the data.
Parameters
| Name | Type | Description |
|---|---|---|
file | File | The |
Returns
ByteVector Data read from the file.
Inherited from
removeChildByBox
▸ removeChildByBox(box): void
Removes a specified box from the current instance.
Parameters
| Name | Type | Description |
|---|---|---|
box | Mpeg4Box | Box to remove from the current instance. |
Returns
void
Inherited from
removeChildByType
▸ removeChildByType(type): void
Removes all children with a specified box type from the current instance.
Parameters
| Name | Type | Description |
|---|---|---|
type | ByteVector | Type of box to remove |
Returns
void
Inherited from
Mpeg4FullBox.removeChildByType
removeChildrenByBox
▸ removeChildrenByBox(boxes): void
Removes all specified boxes from the current instance.
Parameters
| Name | Type | Description |
|---|---|---|
boxes | Mpeg4Box[] | Collection of boxes to remove from the current instance. |
Returns
void
Inherited from
Mpeg4FullBox.removeChildrenByBox
fromFile
▸ Static fromFile(header, file, handlerType): Mpeg4AppleElementaryStreamDescriptor
Constructs and initializes a new instance of AppleElementaryStreamDescriptor with a provided header and handler by reading the contents from a specified file.
Parameters
| Name | Type | Description |
|---|---|---|
header | Mpeg4BoxHeader | A Mpeg4BoxHeader object containing the header to use for the new instance. |
file | File | A File object to read the contents of the box from. |
handlerType | ByteVector | Type of the handler box object containing the handler that applies to the new instance, or undefined if no handler applies. |