Skip to content

PlayerView

Copy as Markdown

What usePlayerState returns: the player, the state that plays and whether it is paused.

S extends string = string

readonly paused: boolean

player.paused; false without a player (the CSS plays on its own).


readonly player: Player<S> | null

null until a player is mounted (and after it is destroyed).


readonly state: S | null

player.state; null without a player.