FbPlayingItemLocation

FbPlayingItemLocation

Example
let playing_item_location = plman.GetPlayingItemLocation();
if (playing_item_location.IsValid) {
    console.log(playing_item_location.PlaylistIndex);
    console.log(playing_item_location.PlaylistItemIndex);
}

Members

readonly IsValid :boolean

False if foobar2000 isn't playing or if the playing track has since been removed from the playlist it was on when playback was started.

readonly PlaylistIndex :number

-1 if item is not in a playlist

readonly PlaylistItemIndex :number

-1 if item is not in a playlist