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

    Interface PlayAudioOptions

    Parameters for reporting playback progress via playAudio.

    interface PlayAudioOptions {
        albumId: string | number;
        clientNow?: string;
        endPositionSeconds?: number;
        from: string;
        fromCache?: boolean;
        playId?: string;
        playlistId?: string;
        timestamp?: string;
        totalPlayedSeconds?: number;
        trackId: string | number;
        trackLengthSeconds?: number;
        uid?: number;
    }
    Index

    Properties

    albumId: string | number

    Album id the track belongs to.

    clientNow?: string

    ISO client timestamp. Defaults to now.

    endPositionSeconds?: number

    Final played-seconds position.

    from: string

    Name of the client the track is played from.

    fromCache?: boolean

    Whether the track is played from cache.

    playId?: string

    Unique play id.

    playlistId?: string

    Playlist id, when a playlist is playing.

    timestamp?: string

    ISO timestamp of the event. Defaults to now.

    totalPlayedSeconds?: number

    Seconds played in total.

    trackId: string | number

    Track id.

    trackLengthSeconds?: number

    Track length in seconds.

    uid?: number

    User id. Defaults to the authenticated account.