Keeps playback going from page to page and across reloads. It holds the player's queue, playback state and controls, saves them as they change and keeps streams' signed URLs fresh. App mounts it around the whole app, and GlobalPlayer draws what it holds.

Functions

f
PlayerProvider(unnamed 0: PlayerProviderProps): React.JSX.Element

Provides PlayerContext and PlayerTimeContext. The queue and the position are saved as they change and restored on load, paused; signing out, or in as someone else, closes the player. A stream whose signed URL expires is re-resolved and resumed where it was, and falls back to its embed if that fails.

Interfaces

I
PlayerProviderProps

Passed to PlayerProvider by App, around the whole app.