Looking for the old docs? Go here

Hooks

useMediaState

This hook is used to subscribe to a specific media state update.

    
    

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