0.2.2 • Published 3 years ago
vue-fancy-player v0.2.2
Vue-DPlayer
A Vue 2.x video player component based on DPlayer.
Install
npm install vue-dplayer -S
Usage
CDN: https://unpkg.com/vue-dplayer@latest/dist/
import VueDPlayer from 'vue-dplayer'
import 'vue-dplayer/dist/vue-dplayer.css'
export default {
components: {
'd-player': VueDPlayer
}
}
Props
Name | Type | Default | Description |
---|---|---|---|
options | Object | -- | all player options |
Events
Example:
<d-player @play="play"></d-player>
export default {
methods: {
play() {
console.log('play callback')
}
}
API
you can use all DPlayer APIs
Example:
<d-player ref="player"></d-player>
export default {
mounted() {
const player = this.$refs.player.dp
player.play()
setTimeout(() => {
player.pause()
}, 2000)
}
Related
License
This content is released under the MIT License.
0.2.2
3 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.9
4 years ago
0.1.8
4 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.0
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.0.9
5 years ago
0.0.8
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.0.7
5 years ago
0.0.6
5 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago