foo-webview-sdk
    Preparing search index...

    Interface RatingSetParams

    Parameters for rating.set. Set a track's rating through foo_playcount's context menu, or write the file's RATING tag when that menu is not available. Without path the playing track is rated, or else the active playlist's selection; with neither the call fails with NO_ACTIVE_ITEM. The tag fallback fails with NOT_SUPPORTED for a WAV file that holds non-ASCII tag text, as in metadata.write.

    interface RatingSetParams {
        cueIndex?: number;
        path?: string;
        rating: number;
    }
    Index
    cueIndex?: number

    Subsong index that wins over a suffix in path; negative values are ignored.

    -1
    
    path?: string

    Track path; a |subsong:N suffix or a trailing #N selects a subsong. Omit it for the playing track, or else the active playlist's selection.

    rating: number

    Rating from 0 to 5; 0 clears it.