Installation
Usage
Wrap your UI inPlayerProvider, then read player state with the hooks.
Video
To use a video player, addvideo: true to the player args.
API
PlayerProvider: creates aBeyondWords.Playerand provides it via context.argsis forwarded to the player constructor.usePlayer(): returns the player instance. Throws if used outside a provider.usePlayerSelector(selector, deps?, options?): subscribes to player events and returns the selected slice of state. It re-renders only when that slice changes (customizable viaoptions.equalityFn).