foo-webview-sdk
    Preparing search index...

    Interface TrackInfo

    Canonical track metadata returned by playback / library / metadata APIs.

    interface TrackInfo {
        absolutePath?: string;
        added?: string;
        album: string;
        albumArtist?: string;
        albumArtists?: string[];
        artist: string;
        artists?: string[];
        bitrate?: number;
        channels?: number;
        codec?: string;
        date?: string;
        discNumber?: number;
        duration: number;
        fileSize?: number;
        genre?: string;
        id?: string;
        index?: number;
        modified?: number;
        path: string;
        rating?: number;
        sampleRate?: number;
        subsong?: number;
        title: string;
        trackNumber?: number;
    }
    Index
    absolutePath?: string

    Native filesystem absolute path.

    added?: string

    Date-added timestamp used when sortBy='added'.

    album: string
    albumArtist?: string
    albumArtists?: string[]

    Atomic values behind albumArtist, with the same rules as artists: albumArtists.join(', ') is exactly albumArtist. Present wherever artists is.

    artist: string
    artists?: string[]

    Atomic values behind artist, in tag order, neither de-duplicated nor stripped of empty values: artists.join(', ') is exactly artist, so a multi-value tag can be recovered from this field and not from artist. Every shared Track row carries it (library, playlist, queue and playback rows, and the track events); it is optional here because objects outside that row, such as the answer of artwork.getMetadata, do not.

    bitrate?: number

    Bitrate in kbps.

    channels?: number

    Channel count.

    codec?: string

    Codec identifier.

    date?: string
    discNumber?: number
    duration: number
    fileSize?: number

    File size in bytes.

    genre?: string
    id?: string

    Unique track identifier (canonical absolute path).

    index?: number

    Library index (returned by some APIs).

    modified?: number

    Modified-time fallback when sort-by-added is unavailable (Unix seconds).

    path: string
    rating?: number

    Rating from 0 to 5.

    sampleRate?: number

    Sample rate in Hz.

    subsong?: number
    title: string
    trackNumber?: number