The useMediaContext
hook lets you build custom components which interact directly with the media state store.
useStore
hook is from
zustand
,
and inherits all of the documentation for Zustand stores.useStore
hooksuseMediaContext
hook returns a Zustand store, which contains the
PlayerState
.
aria
buffered
bufferedPercent
canPlay
currentSource
currentUrl
duration
error
errorCount
stalled
fullscreen
hasPlayed
hidden
live
loading
mounted
playbackRate
constant
means playing
WebRTC playback at a constant pace and not speeding up.
pictureInPicture
poster
Src[]
.
progress
playing
sortedSources
volume
waiting
videoQuality
ended
__controlsFunctions
__device
__controls
__initialProps
__metadata