jdy-player

1.2.10 • Public • Published

jdy-player

A Vue 2.x video player component based on DPlayer.

Install

npm install jdy-player -S

Props

Options Doc

Name Type Default Description
options Object -- all player options

Events

Event binding Doc

Example:

<jdy-player @play="play"></jdy-player>

export default {
    methods: {
      play() {
        console.log('play callback')
      }
    }

API

you can use all DPlayer APIs

Example:

<jdy-player ref="player"></jdy-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.

Readme

Keywords

Package Sidebar

Install

npm i jdy-player

Weekly Downloads

4

Version

1.2.10

License

MIT

Unpacked Size

5.22 MB

Total Files

7

Last publish

Collaborators

  • aslan1786