Documentation/FbPlayingItemLocation
class

FbPlayingItemLocation

js/foo_uie_jsplitter.js:3874

Example

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

IsValid

js/foo_uie_jsplitter.js:3887
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.

propertyreadonly

PlaylistIndex

js/foo_uie_jsplitter.js:3896
PlaylistIndex: number

-1 if item is not in a playlist

propertyreadonly

PlaylistItemIndex

js/foo_uie_jsplitter.js:3904
PlaylistItemIndex: number

-1 if item is not in a playlist