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 | null Previous playback time (in milliseconds) before the change occurred. currentTimenumber | null Current playback time (in milliseconds) after the change occurred.