Documentation/FbMetadbHandle
classWORKERCLONEABLE

FbMetadbHandle

js/foo_uie_jsplitter.js:5313
propertyWORKERreadonly

FileSize

js/foo_uie_jsplitter.js:5348
FileSize: number

-1 if size is unavailable.

propertyWORKERreadonly

Length

js/foo_uie_jsplitter.js:5357
Length: float
propertyWORKERreadonly

Path

js/foo_uie_jsplitter.js:5320
Path: string

Example

let handle = fb.GetFocusItem();
console.log(handle.Path); // D:\SomeSong.flac
propertyWORKERreadonly

RawPath

js/foo_uie_jsplitter.js:5331
RawPath: string

Example

console.log(handle.RawPath); // file://D:\SomeSong.flac
propertyWORKERreadonly

SubSong

js/foo_uie_jsplitter.js:5341
SubSong: number
methodWORKER

ClearStats

js/foo_uie_jsplitter.js:5394
ClearStats()
methodWORKER

Compare

js/foo_uie_jsplitter.js:5407
Compare(handle)

Compare two FbMetadbHandle instances, pointer only.
If you want to compare them physically, use the FbMetadbHandle#RawPath property.

Parameters

NameTypeDescription
handleFbMetadbHandle

Returns

boolean

Example

handle.Compare(handle2);
methodWORKER

GetFileInfo

js/foo_uie_jsplitter.js:5420
GetFileInfo(want_full_info)

Parameters

NameTypeDescription
want_full_info = falseoptionalboolean

This enables full retrieval of tags that have been blocked with [b][url=https://www.foobar2000.org/LargeFieldsConfig-v2]LargeFieldsConfig-v2[/url][/b] in the latest foobar2000 2.26 previews.

Returns

?FbFileInfo —

null if file info is not available.

methodWORKERMAIN THREAD

RefreshStats

js/foo_uie_jsplitter.js:5400
RefreshStats()
methodWORKER

SetFirstPlayed

js/foo_uie_jsplitter.js:5376
SetFirstPlayed(first_played)

Parameters

NameTypeDescription
first_playedstring

Use "" to clear

methodWORKER

SetLastPlayed

js/foo_uie_jsplitter.js:5382
SetLastPlayed(last_played)

Parameters

NameTypeDescription
last_playedstring

Use "" to clear

methodWORKER

SetLoved

js/foo_uie_jsplitter.js:5370
SetLoved(loved)

Parameters

NameTypeDescription
lovednumber

Use 0 to clear

methodWORKER

SetPlaycount

js/foo_uie_jsplitter.js:5364
SetPlaycount(playcount)

Parameters

NameTypeDescription
playcountnumber

Use 0 to clear

methodWORKER

SetRating

js/foo_uie_jsplitter.js:5388
SetRating(rating)

Parameters

NameTypeDescription
ratingnumber

Use 0 to clear