Looking for the old docs? Go here

Hooks

useMediaStore

This hook is used to subscribe to multiple media state updates.

import { useMediaStore } from '@vidstack/react';

const { paused, playing /* ... */ } = useMediaStore();

A ref is required if called outside outside of <MediaPlayer>: