Documentation/FbPlayingItemLocation
class

FbPlayingItemLocation

js/foo_uie_jsplitter.js:3888

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:3901
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:3910
PlaylistIndex: number

-1 if item is not in a playlist

propertyreadonly

PlaylistItemIndex

js/foo_uie_jsplitter.js:3918
PlaylistItemIndex: number

-1 if item is not in a playlist