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 handleFbMetadbHandle Returns:
booleanExample
handle.Compare(handle2); -
GetFileInfo() → nullable {FbFileInfo}
-
Returns:
FbFileInfo - null if file info is not available. -
RefreshStats()
-
-
SetFirstPlayed(first_played)
-
Parameters:
Name Type Description first_playedstring Use "" to clear -
SetLastPlayed(last_played)
-
Parameters:
Name Type Description last_playedstring Use "" to clear -
SetLoved(loved)
-
Parameters:
Name Type Description lovednumber Use 0 to clear -
SetPlayCount(playcount)
-
Parameters:
Name Type Description playcountnumber Use 0 to clear -
SetRating(rating)
-
Parameters:
Name Type Description ratingnumber Use 0 to clear