PlayerView
Copy as MarkdownWhat usePlayerState returns: the player, the state that plays and whether it is paused.
Type Parameters
Section titled “Type Parameters”S extends string = string
Properties
Section titled “Properties”paused
Section titled “paused”
readonlypaused:boolean
player.paused; false without a player (the CSS plays on its own).
player
Section titled “player”
readonlyplayer:Player<S> |null
null until a player is mounted (and after it is destroyed).
readonlystate:S|null
player.state; null without a player.