foo-webview-sdk
    Preparing search index...

    Interface TitleformatEvalParams

    Parameters for titleformat.eval. Evaluate one title formatting pattern against one track, or against the playing track when no path is given.

    interface TitleformatEvalParams {
        path?: string;
        pattern: string;
    }
    Index
    path?: string

    Path of the track to evaluate against; a |subsong:N suffix selects a subsong, such as one track of a CUE sheet. Omit it to evaluate against the playing track, which also fills dynamic fields such as %playback_time% and stream titles; the call then fails with NO_ACTIVE_ITEM when nothing is playing.

    pattern: string

    Title formatting pattern, such as %artist% - %title%.