node-taglib-sharp / Exports / Id3v2EventTimeCode
Class that represents an event for usage in a EventTimeCodeFrame.
• new Id3v2EventTimeCode(eventType, time)
Constructs and initializes a new instance.
| Name | Type | Description |
|---|---|---|
eventType |
Id3v2EventType |
Type of event the instance represents |
time |
number |
Timestamp when the event occurs |
• get eventType(): Id3v2EventType
Gets the type of the event the current instance represents.
• set eventType(value): void
Sets the type of the event the current instance represents.
| Name | Type | Description |
|---|---|---|
value |
Id3v2EventType |
Type of the event |
void
• 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.
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.
| Name | Type | Description |
|---|---|---|
value |
number |
Timestamp when the event occurs. |
void
▸ clone(): Id3v2EventTimeCode
Creates a copy of this instance
▸ render(): ByteVector
Generates the byte representation of the event time code.
▸ Static fromEmpty(): Id3v2EventTimeCode
Constructs and initializes a blank new instance of type EventType.Padding at time 0.