vue-video-player is a package that provides a Vue component for integrating the Video.js player into applications. Version 6.0.0 is the final release under this specific package name and functions primarily as a re-export of the newly named `@videojs-player/vue` package. The project has undergone a significant architectural change, now offering distinct packages for Vue and React (with `@videojs-player/react`). The current stable version for Vue 3 is `@videojs-player/vue@1.x`. This library exclusively supports Vue 3, with Vue 2 support remaining in the legacy `vue-video-player@4.x` branch. It differentiates itself by offering responsive design, extensive customization options for the control panel, and internal processing designed to abstract framework-specific complexities, aiming for a robust and flexible video integration solution.
npm install vue-video-playerVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to import and use the VideoPlayer component from `@videojs-player/vue` in a Vue 3 setup script. It includes necessary CSS imports and sets up basic player options for a responsive video.
Migrate your project to use `@videojs-player/vue`. Install it via `npm install @videojs-player/vue video.js @types/video.js` and update all import statements accordingly.
If you need Vue 2 support, you must use `vue-video-player@4.x`. For new projects or upgrades, migrate your application to Vue 3 or target `@videojs-player/vue` only in Vue 3 environments.
Add `import 'video.js/dist/video-js.css';` and `import '@videojs-player/vue/dist/index.css';` to your main entry file (e.g., `main.ts`) or the component where the player is used.
Ensure you have installed both: `npm install video.js@7.x @types/video.js@7.x`.
Install the new package (`npm install @videojs-player/vue`) and update your import statements from `vue-video-player` to `@videojs-player/vue`.
Verify that your application is running Vue 3. Ensure `VideoPlayer` is correctly imported with `import { VideoPlayer } from '@videojs-player/vue';` and included in your component's template.Ensure that `import 'video.js/dist/video-js.css';` and `import '@videojs-player/vue/dist/index.css';` are present in your application's entry point or the component where `VideoPlayer` is used.