FbMetadbHandle

Members

readonly FileSize :number

-1 if size is unavailable.

readonly Length :float

readonly Path :string

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

readonly RawPath :string

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

readonly SubSong :number

Methods

ClearStats()

Compare(handle) → {boolean}

Compare two FbMetadbHandle instances, pointer only.
If you want to compare them physically, use the FbMetadbHandle#RawPath property.
Parameters:
Name Type Description
handle FbMetadbHandle
Returns:
boolean
Example
handle.Compare(handle2);

GetFileInfo()nullable {FbFileInfo}

Returns:
FbFileInfo - null if file info is not available.

RefreshStats()

SetFirstPlayed(first_played)

Parameters:
Name Type Description
first_played string Use "" to clear

SetLastPlayed(last_played)

Parameters:
Name Type Description
last_played string Use "" to clear

SetLoved(loved)

Parameters:
Name Type Description
loved number Use 0 to clear

SetPlayCount(playcount)

Parameters:
Name Type Description
playcount number Use 0 to clear

SetRating(rating)

Parameters:
Name Type Description
rating number Use 0 to clear