Class: Id3Event

  • The cast.framework.events.Id3Event class provides data for ID3 metadata events within the Cast framework, delivering information frame by frame.

  • This event includes the frame type, description, and data but excludes the raw ID3 message structure like headers and flags.

  • ID3 frame details like frameType, frameDescription, and segmentData are accessible via corresponding properties of the Id3Event object.

  • Developers can use this event to access and utilize ID3 metadata, such as song titles or artist information, during media playback.

Constructor

Id3Event

new Id3Event(segmentData, timestamp, frameDescription, frameType)

Parameter

segmentData

Uint8Array

Value must not be null.

timestamp

number

frameDescription

Optional

Uint8Array

Value must not be null.

frameType

Optional

string

Properties

frameDescription

constant

(non-null Uint8Array or undefined)

The ID3 frame's description.

frameType

constant

(string or undefined)

The ID3 frame tag. A full list of possible tags are listed in https://exiftool.org/TagNames/ID3.html.

segmentData

constant

non-null Uint8Array

The ID3 frame's data.

timestamp

constant

number

The media start time of the ID3 message in seconds.