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
| Name | Type | Description |
|---|---|---|
eventType | Id3v2EventType | Type of event the instance represents |
time | number | Timestamp when the event occurs |
Accessors
eventType
• get eventType(): Id3v2EventType
Gets the type of the event the current instance represents.
Returns
• set eventType(value): void
Sets the type of the event the current instance represents.
Parameters
| Name | Type | Description |
|---|---|---|
value | Id3v2EventType | Type 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
| Name | Type | Description |
|---|---|---|
value | number | Timestamp when the event occurs. |
Returns
void
Methods
clone
▸ clone(): Id3v2EventTimeCode
Creates a copy of this instance
Returns
render
▸ render(): ByteVector
Generates the byte representation of the event time code.
Returns
fromEmpty
▸ Static fromEmpty(): Id3v2EventTimeCode
Constructs and initializes a blank new instance of type EventType.Padding at time 0.