@dvxch/yandex-music
    Preparing search index...

    Interface NowPlaying

    A synchronous snapshot of what is playing right now, pulled from the last received state frame. Unlike the push events, this is available at any time (for example to answer an HTTP request) without waiting for the next frame.

    interface NowPlaying {
        durationMs: number;
        entityId: string | null;
        entityType: string | null;
        paused: boolean;
        playableId: string | null;
        progressMs: number;
        track: Track | null;
    }
    Index

    Properties

    durationMs: number

    Track length in milliseconds.

    entityId: string | null

    The current entity id (album/playlist/…), or null.

    entityType: string | null

    The current entity type, or null.

    paused: boolean

    Whether playback is paused.

    playableId: string | null

    The current playable id, or null when nothing is playing.

    progressMs: number

    Live-extrapolated playback position in milliseconds (see liveProgressMs).

    track: Track | null

    The resolved track, when a resolver is configured and resolution succeeded.