Class: shaka.util.Id3Utils

A set of Id3Utils utility functions.

Constructor

new Id3Utils()

A set of Id3Utils utility functions.

Source:

Members

UTF8_encoding :number

UTF8 encoding byte
Type:
  • number
Source:

Methods

decodeFrame_(frame) → {shaka.extern.MetadataFrame}

Parameters:
Name Type Description
frame shaka.extern.MetadataRawFrame
Source:
Returns:
Type
shaka.extern.MetadataFrame

getFrameData_(data) → {shaka.extern.MetadataRawFrame}

Parameters:
Name Type Description
data Uint8Array
Source:
Returns:
Type
shaka.extern.MetadataRawFrame

getID3Data(id3Data, offsetopt) → {Uint8Array}

Returns any adjacent ID3 tags found in data starting at offset, as one block of data
Parameters:
Name Type Attributes Default Description
id3Data Uint8Array The ID3 data containing one or more ID3 tags
offset number <optional>
0 The offset at which to start searching
Source:
Returns:
Type
Uint8Array

getID3Frames(id3Data) → {Array.<shaka.extern.MetadataFrame>}

Returns an array of ID3 frames found in all the ID3 tags in the id3Data
Parameters:
Name Type Description
id3Data Uint8Array The ID3 data containing one or more ID3 tags
Source:
Returns:
Type
Array.<shaka.extern.MetadataFrame>

isFooter_(data, offset) → {boolean}

Parameters:
Name Type Description
data Uint8Array
offset number
Source:
Returns:
Type
boolean

isHeader_(data, offset) → {boolean}

Parameters:
Name Type Description
data Uint8Array
offset number
Source:
Returns:
Type
boolean

readSize_(data, offset) → {number}

Parameters:
Name Type Description
data Uint8Array
offset number
Source:
Returns:
Type
number