Class: shaka.metadata.Id3V1Utils

Metadata parser for ID3v1 tags.

Constructor

new Id3V1Utils()

Metadata parser for ID3v1 tags.

Implements:
Source:

Methods

parse(datanon-null) → {Array<!shaka.extern.MetadataFrame>}

Parses {@code data} and returns every metadata frame found in it. Implementations MUST:
  • Return an empty array (never {@code null}) when no frames are found or the data is not recognised.
  • Not throw; all errors should be swallowed and result in an empty or partial return value.
  • Use ID3v2.4 four-character frame IDs as {@code key} values wherever a mapping exists (see class-level documentation).
Parameters:
Name Type Description
data Uint8Array Raw bytes of the media segment or file.
Implements:
Source:
Returns:
Type
Array<!shaka.extern.MetadataFrame>