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/
components: 'd-player': VueDPlayer
Props
Name | Type | Default | Description |
---|---|---|---|
options | Object | -- | all player options |
Events
Example:
<d-player @play="play"></d-player> methods: { console }
API
you can use all DPlayer APIs
Example:
<d-player ref="player"></d-player> { const player = this$refsplayerdp player }
Related
License
This content is released under the MIT License.