Renders the player docked at the bottom of every page. App mounts it once, beside the routes, so playback goes on from page to page.

Functions

f
GlobalPlayer(): React.JSX.Element | null

Renders what PlayerContext plays, with a link to its dump: a MediaPlayer for a file or a stream, the provider's iframe for an embed, and the tracklist of the queue or of a YouTube playlist. It renders nothing while nothing plays.

Usage

import * as mod from "src/components/player/GlobalPlayer.tsx";