function fetchPlaylistTracks
fetchPlaylistTracks(listId: string): Promise<YouTubePlaylistTrack[]>

Returns the titles and lengths of the videos of playlist listId, from GET /api/remote/youtube, since the embed exposes neither.

Parameters

listId: string

Return Type

Throws

Error

When the request fails or finds no video. useYouTubePlaylist then shows the rows without titles, if the player API lists them.

Usage

import { fetchPlaylistTracks } from "src/utils/player/youtube.ts";