Skip to main content
Version: v2.9.2

Interface: TrackChangeEvent

The event emitted when a player's track changes. This includes changes such as starting, ending, autoplaying, or skipping to the previous track.

Property Type Description Optional
typestring = "track"The event type identifier. Always "track" for this event.
actionstring = "start" | "end" | "previous" | "timeUpdate" | "autoPlay"Describes the specific action that caused the track event.
trackTrackThe track associated with this event.
previousTimenumber | nullPrevious playback time (in milliseconds) before the change occurred.
currentTimenumber | nullCurrent playback time (in milliseconds) after the change occurred.