# vue-plyr
**Repository Path**: mirrors_redxtech/vue-plyr
## Basic Information
- **Project Name**: vue-plyr
- **Description**: A Vue component for the plyr (https://github.com/sampotts/plyr) video & audio player.
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 2
- **Created**: 2022-01-06
- **Last Updated**: 2026-04-20
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# vue-plyr
> v7.0.0 - [Changelog](https://github.com/redxtech/vue-plyr/blob/master/changelog.md)
A vue component for the plyr video & audio player.
This is useful for when you want a nice video player in your Vue app.
It uses [plyr](https://plyr.io) by [sampotts](https://github.com/sampotts) for the players.
Supported player types: HTML5 video, HTML5 audio, YouTube, and Vimeo.
### Demo
A demo of the components (equivalent to the html example include here) can be found at
[redxtech.github.io/vue-plyr](https://redxtech.github.io/vue-plyr/).
## Installation
```bash
yarn add vue-plyr # or npm i vue-plyr
```
### Module
```js
// In your main vue file - the one where you create the initial vue instance.
import Vue from 'vue'
import VuePlyr from 'vue-plyr'
import 'vue-plyr/dist/vue-plyr.css'
// Vue 3.x
// The second argument is optional and sets the default config values for every player.
createApp(App)
.use(VuePlyr, {
plyr: {}
})
.mount('#app')
// Vue 2.x
// The second argument is optional and sets the default config values for every player.
Vue.use(VuePlyr, {
plyr: {}
})
```
### SSR [(more below)](#ssr)
For SSR, you can import the SSR optimized module, found at `dist/vue-plyr.ssr.js`. There is a more in depth description
on how to use it with [nuxt](#nuxt) below.
### Browser
In the browser you can include it as you would any other package with unpkg, along with the stylesheet:
```html
```
## Usage
Once installed, it can be used in a template as simply as:
```vue