Skip to main content
Version: 1.x

Lite Player

version-badge size-badge license-badge github-badge tweet-badge

The Lite Player is used to embed media content. If you'd like to know what features it includes and how it compares to other options then see the getting started page.


npm install @vime-js/lite

The dist folder inside the package contains multiple exports:

  • lite.js is a UMD development build that can be used directly in the browser via the <script> tag.
  • lite.esm.js is intended for use with modern bundlers like Webpack or Rollup.
  • lite.min.js is a UMD production build that can be used directly in the browser via the <script> tag.
  • lite.esm.min.js is an ESM production build that can be used directly in modern browsers via the <script type="module"> tag.
  • UMD builds are exported under the Vime namespace.
  • If you're using a bundler then it will automatically pull in the correct files.
  • If you're using svelte-loader or rollup-plugin-svelte then you'll receive the uncompiled components.


import { Player } from '@vime-js/lite';
const target = document.getElementById('player-target');
// Mount
const player = new Player({
// If you'd like to initialize any props on setup, you can do so here.
props: {},
// ...
// Destroy

See the client-side component API for the complete set of component initialization options.

Where to next?#

The usage page will guide you on how to get started with any provider, after that go to the API page to see what props/methods/events are exposed and how you can interact with them.