Feature bundles
A feature bundle is an array of features grouped for a specific use case. The preset bundles are the starting point for most players:- React
- HTML
Build a player with individual features
When you need precise control over what the player includes, pass an array of individual features directly tocreatePlayer():
- React
- HTML
Extend a preset’s feature bundle
Feature bundles are plain arrays, so you can spread them and append additional features:- React
- HTML
Check feature availability
Some features — volume, fullscreen, and picture-in-picture — expose an*Availability property because platform support varies. For example, iOS Safari does not allow programmatic volume control.
| Value | Meaning |
|---|---|
'available' | Ready to use |
'unavailable' | Could work but not ready yet |
'unsupported' | Platform can never support this |
- React
- HTML
Feature-scoped selectors
Each feature exports a pre-built selector that returns just that feature’s state and actions. Use these to avoid subscribing to more state than you need.- React
- HTML
Custom state selectors
UsecreateSelector() from @videojs/react (or @videojs/store) to build your own memoized selectors:
Next steps
Custom skins
Build or eject a skin to match your design.
Media sources
Swap in HLS, DASH, and other media providers.