Documentation/FbPlayingItemLocation
classWORKERCLONEABLE

FbPlayingItemLocation

jsdoc/objects/foobar2000.js:724

Example

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

IsValid

jsdoc/objects/foobar2000.js:739
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.

propertyWORKERreadonly

PlaylistIndex

jsdoc/objects/foobar2000.js:749
PlaylistIndex: number

-1 if item is not in a playlist

propertyWORKERreadonly

PlaylistItemIndex

jsdoc/objects/foobar2000.js:758
PlaylistItemIndex: number

-1 if item is not in a playlist