A Vue 2.x video player component based on DPlayer
npm install vue-fancy-player> A Vue 2.x video player component based on DPlayer.



``bash`
npm install vue-dplayer -S
CDN: https://unpkg.com/vue-dplayer@latest/dist/
`js
import VueDPlayer from 'vue-dplayer'
import 'vue-dplayer/dist/vue-dplayer.css'
export default {
components: {
'd-player': VueDPlayer
}
}
`
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| options | Object | -- | all player options |
Example:
`js
export default {
methods: {
play() {
console.log('play callback')
}
}
`
you can use all DPlayer APIs
Example:
`js
export default {
mounted() {
const player = this.$refs.player.dp
player.play()
setTimeout(() => {
player.pause()
}, 2000)
}
``
This content is released under the MIT License.