interface UseYouTubePlaylistResult

Returned by useYouTubePlaylist to GlobalPlayer, which shows the tracklist and its transport when there is more than one row.

Properties

index: number

The playing row, or -1 while the player hasn't reported one.

ready: boolean

Whether the IFrame API drives the embed. Rows are clickable only then.

Methods

playAt(index: number): void
next(): void
previous(): void

Usage

import { type UseYouTubePlaylistResult } from "src/hooks/player/useYouTubePlaylist.ts";