Version: 1.x
Customization
This page will guide you on how to extend or customize the player. Refer to the Player API for what props/methods/events are available and how to interact with them.
Loading Providers#
Providers are loaded via the providers prop.
info
Checkout the provider notes for any provider specific issues or features.
Loading Plugins#
Plugins are loaded via the plugins prop, see the plugins getting started
page for more information.
Loading Icons#
Icons are set via the icons prop.
Vime Icons#
You can load the default Vime icons by using the Icons plugin.
Custom Icons#
Create an SVG sprite and insert it into the head of the document. You can then override the following default icons.
- play
- pause
- captionsOn
- captionsOff
- enterFullscreen
- exitFullscreen
- enterPiP
- exitPiP
- seekForward
- seekBackward
- volumeLow
- volumeHigh
- volumeMute
- settings
- checkmark
Extending Language#
You can add your own language via the languages prop.
Theming#
You can style the player via the theme prop. Under the hood it utilizes CSS custom properties.
CSS Vars#
- color
- fontFamily
- fontSizeSmall
- fontSizeMedium
- fontSizeLarge
- fontSizeExtraLarge
- fontWeightLight
- fontWeightRegular
- fontWeighBold
- baseLineHeight