Tsarr Documentation - v2.16.0
    Preparing search index...

    Type Alias PlayQueueUpdateWritable

    Class PlayQueueUpdate.

    type PlayQueueUpdateWritable = {
        Reason?:
            | "NewPlaylist"
            | "SetCurrentItem"
            | "RemoveItems"
            | "MoveItem"
            | "Queue"
            | "QueueNext"
            | "NextItem"
            | "PreviousItem"
            | "RepeatMode"
            | "ShuffleMode";
        LastUpdate?: string;
        Playlist?: SyncPlayQueueItemWritable[];
        PlayingItemIndex?: number;
        StartPositionTicks?: number;
        IsPlaying?: boolean;
        ShuffleMode?: "Sorted"
        | "Shuffle";
        RepeatMode?: "RepeatOne" | "RepeatAll" | "RepeatNone";
    }
    Index
    Reason?:
        | "NewPlaylist"
        | "SetCurrentItem"
        | "RemoveItems"
        | "MoveItem"
        | "Queue"
        | "QueueNext"
        | "NextItem"
        | "PreviousItem"
        | "RepeatMode"
        | "ShuffleMode"

    Gets the request type that originated this update.

    LastUpdate?: string

    Gets the UTC time of the last change to the playing queue.

    Gets the playlist.

    PlayingItemIndex?: number

    Gets the playing item index in the playlist.

    StartPositionTicks?: number

    Gets the start position ticks.

    IsPlaying?: boolean

    Gets a value indicating whether the current item is playing.

    ShuffleMode?: "Sorted" | "Shuffle"

    Gets the shuffle mode.

    RepeatMode?: "RepeatOne" | "RepeatAll" | "RepeatNone"

    Gets the repeat mode.