Interface: Track
Represents a playable audio track used internally by the player. Includes metadata, playback options, and plugin data.
Property Type Description Optional artworkUrlstring | null URL to the track's artwork image, or nullif unavailable.authorstring Track author or channel name. customDataRecord<string, unknown> Developer-defined metadata attached to the track. displayThumbnail(size?)( Sizes) => string | nullReturns a YouTube thumbnail URL at the given resolution, or nullfor unsupported sources.durationnumber Duration of the track in milliseconds. identifierstring Unique platform identifier (e.g. YouTube video ID). isAutoplayboolean Whether this track was added by the autoplay system. isrcstring ISRC (International Standard Recording Code) for the track. isSeekableboolean Whether the track supports seeking. isStreamboolean Whether the track is a live stream. pluginInfoTrackPluginInfoAdditional plugin-specific metadata for the track. requesterAnyUserThe user who requested the track. sourceNameTrackSourceNameThe source platform of the track (e.g. "YouTube","Spotify").thumbnailstring | null YouTube thumbnail URL, or nullfor unsupported sources.titlestring Title of the track. trackstring Base64-encoded Lavalink track string. uristring Original source URL of the track.