method PlayerContextValue.playQueue
PlayerContextValue.playQueue(
items: PlayerItem[],
startIndex?: number
): void

Replaces the queue with items and plays it from startIndex.

Parameters

items: PlayerItem[]
optional
startIndex: number

Return Type

void

Usage

import { type PlayerContextValue } from "src/contexts/player/PlayerContext.ts";