ID3
ID3 parser
Static Method Summary
| Static Public Methods | ||
| public static |
getID3Data(data: Uint8Array, offset: number): Uint8Array Returns any adjacent ID3 tags found in data starting at offset, as one block of data |
|
| public static |
getID3Frames(id3Data: Uint8Array): ID3 frame[] Returns an array of ID3 frames found in all the ID3 tags in the id3Data |
|
| public static |
getTimeStamp(data: Uint8Array): number Searches for the Elementary Stream timestamp found in the ID3 data chunk |
|
| public static |
isFooter(data: Uint8Array, offset: number): boolean Returns true if an ID3 footer can be found at offset in data |
|
| public static |
isHeader(data: Uint8Array, offset: number): boolean Returns true if an ID3 header can be found at offset in data |
|
| public static |
isTimeStampFrame(frame: ID3 frame): * Returns true if the ID3 frame is an Elementary Stream timestamp frame |
|
| Static Private Methods | ||
| private static |
_decodeFrame(frame: *): * |
|
| private static |
_decodePrivFrame(frame: *): {"key": *, "info": *, "data": *} |
|
| private static |
_decodeTextFrame(frame: *): {"key": *, "data": *} |
|
| private static |
_decodeURLFrame(frame: *): {"key": *, "data": *} |
|
| private static |
_getFrameData(data: *): {"type": *, "size": *, "data": *} |
|
| private static |
_readSize(data: *, offset: *): * |
|
| private static |
_readTimeStamp(timeStampFrame: *): * |
|
| private static |
_utf8ArrayToStr(array: *, exitOnNull: boolean): * |
|
Static Public Methods
public static getID3Data(data: Uint8Array, offset: number): Uint8Array source
Returns any adjacent ID3 tags found in data starting at offset, as one block of data
Params:
| Name | Type | Attribute | Description |
| data | Uint8Array | The data to search in |
|
| offset | number | The offset at which to start searching |
public static getID3Frames(id3Data: Uint8Array): ID3 frame[] source
Returns an array of ID3 frames found in all the ID3 tags in the id3Data
Params:
| Name | Type | Attribute | Description |
| id3Data | Uint8Array | The ID3 data containing one or more ID3 tags |
Return:
| ID3 frame[] | Array of ID3 frame objects |
public static getTimeStamp(data: Uint8Array): number source
Searches for the Elementary Stream timestamp found in the ID3 data chunk
Params:
| Name | Type | Attribute | Description |
| data | Uint8Array | Block of data containing one or more ID3 tags |
public static isFooter(data: Uint8Array, offset: number): boolean source
Returns true if an ID3 footer can be found at offset in data
Params:
| Name | Type | Attribute | Description |
| data | Uint8Array | The data to search in |
|
| offset | number | The offset at which to start searching |
public static isHeader(data: Uint8Array, offset: number): boolean source
Returns true if an ID3 header can be found at offset in data
Params:
| Name | Type | Attribute | Description |
| data | Uint8Array | The data to search in |
|
| offset | number | The offset at which to start searching |
public static isTimeStampFrame(frame: ID3 frame): * source
Returns true if the ID3 frame is an Elementary Stream timestamp frame
Params:
| Name | Type | Attribute | Description |
| frame | ID3 frame |
Return:
| * |
Static Private Methods
private static _decodeFrame(frame: *): * source
Params:
| Name | Type | Attribute | Description |
| frame | * |
Return:
| * |
private static _decodePrivFrame(frame: *): {"key": *, "info": *, "data": *} source
Params:
| Name | Type | Attribute | Description |
| frame | * |
Return:
| {"key": *, "info": *, "data": *} |
private static _decodeTextFrame(frame: *): {"key": *, "data": *} source
Params:
| Name | Type | Attribute | Description |
| frame | * |
Return:
| {"key": *, "data": *} |
private static _decodeURLFrame(frame: *): {"key": *, "data": *} source
Params:
| Name | Type | Attribute | Description |
| frame | * |
Return:
| {"key": *, "data": *} |
private static _getFrameData(data: *): {"type": *, "size": *, "data": *} source
Params:
| Name | Type | Attribute | Description |
| data | * |
Return:
| {"type": *, "size": *, "data": *} |
private static _readSize(data: *, offset: *): * source
Params:
| Name | Type | Attribute | Description |
| data | * | ||
| offset | * |
Return:
| * |
private static _readTimeStamp(timeStampFrame: *): * source
Params:
| Name | Type | Attribute | Description |
| timeStampFrame | * |
Return:
| * |
