GetPlaylistFile
Syntax
GetPlaylistFile(position)
Description
Returns the filename of the track at position pos in the playlist.
Parameters and Remarks
position The zero indexed position of the track to retrieve the filename. It must be less than the length of the playlist (see GetPlaylistLength).
Return value is the full path and filename of the requested track.
NOTE: Normally it is more efficient to query the entire playlist using GetPlaylist, unless the current playlist is very large and only a small section is required.
Examples
JScript
if (winamp.GetPlaylistLength() > 0)
{
var first_track = winamp.GetPlaylistFile(0);
}