TrackInfo

What the transformed Track Information Object looks like

Overview

Parameter
Type
Description

identifier

The Identifier of the Track

title

The Track Title / Name

author

The Name of the Author

duration

The Duration of the Track

artworkUrl

The URL of the artwork if available

uri

THe URL (aka Link) of the Track

sourceName

The Sourcename of the Track

isSeekable

Wether the audio is seekable

isStream

Wether the Track is a live-stream

isrc

The ISRC code of the Track, if available

Interface

export interface TrackInfo {
    /** The Identifier of the Track */
    identifier: string;
    /** The Track Title / Name */
    title: string;
    /** The Name of the Author */
    author: string;
    /** The duration of the Track */
    duration: number;
    /** The URL of the artwork if available */
    artworkUrl: string | null;
    /** The URL (aka Link) of the Track called URI */
    uri: string;
    /** The Source name of the song, e.g. soundcloud, youtube, spotify */
    sourceName: SourceNames;
    /** Wether the audio is seekable */
    isSeekable: boolean;
    /** Wether the audio is of a live stream */
    isStream: boolean;
    /** If isrc code is available, it's provided */
    isrc: string | null;
}

Last updated