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

    Interface YnisonState

    A snapshot of player state parsed from a PutYnisonStateResponse frame.

    interface YnisonState {
        currentPlayableIndex: number;
        durationMs: number;
        entityId: string | null;
        entityType: string | null;
        paused: boolean;
        playableList: { playableId: string | null }[];
        playbackSpeed: number;
        progressMs: number;
        timestampMs: number;
    }
    Index

    Properties

    currentPlayableIndex: number

    Index of the currently playing item.

    durationMs: number

    Track duration in milliseconds.

    entityId: string | null

    Id of the playing context (album/playlist/…).

    entityType: string | null

    Type of the playing context.

    paused: boolean

    Whether playback is paused.

    playableList: { playableId: string | null }[]

    The playable queue (track references).

    playbackSpeed: number

    Playback speed multiplier.

    progressMs: number

    Playback position in milliseconds at YnisonState.timestampMs.

    timestampMs: number

    Server timestamp of the snapshot (ms since the epoch).