Class: Id3v2EventTimeCode

March 10, 2023 · View on GitHub

node-taglib-sharp / Exports / Id3v2EventTimeCode

Class: Id3v2EventTimeCode

Class that represents an event for usage in a EventTimeCodeFrame.

Table of contents

Constructors

Accessors

Methods

Constructors

constructor

new Id3v2EventTimeCode(eventType, time)

Constructs and initializes a new instance.

Parameters

NameTypeDescription
eventTypeId3v2EventTypeType of event the instance represents
timenumberTimestamp when the event occurs

Accessors

eventType

get eventType(): Id3v2EventType

Gets the type of the event the current instance represents.

Returns

Id3v2EventType

set eventType(value): void

Sets the type of the event the current instance represents.

Parameters

NameTypeDescription
valueId3v2EventTypeType of the event

Returns

void


time

get time(): number

Gets the timestamp when the event occurs. The format of the value is determined by the frame that contains the timecode event.

Returns

number

set time(value): void

Sets the timestamp when the event occurs. The format of the value is determined by the frame that contains the timecode event.

Parameters

NameTypeDescription
valuenumberTimestamp when the event occurs.

Returns

void

Methods

clone

clone(): Id3v2EventTimeCode

Creates a copy of this instance

Returns

Id3v2EventTimeCode


render

render(): ByteVector

Generates the byte representation of the event time code.

Returns

ByteVector


fromEmpty

Static fromEmpty(): Id3v2EventTimeCode

Constructs and initializes a blank new instance of type EventType.Padding at time 0.

Returns

Id3v2EventTimeCode