Class: Id3Event

  • Id3Event is event data for a cast.framework.events.EventType.ID3 event following the ID3 v2 formatting, with one event fired per frame within the ID3 message.

  • This event provides the frame type, frame description, and frame data but not the entire raw ID3 message.

  • The Id3Event constructor takes segment data, timestamp, and optional frame description and frame type as parameters.

  • Key properties of Id3Event include the ID3 frame's description (frameDescription), the ID3 frame tag (frameType), the ID3 frame's data (segmentData), and the media start time of the ID3 message in seconds (timestamp).

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.