# jdy-player

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

Latest version **1.2.10** (published 2022-05-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install jdy-player
pnpm add jdy-player
yarn add jdy-player
bun add jdy-player
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.10 |
| Published | 2022-05-19 |
| First published | 2022-05-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | zhangpeng |
| Maintainers | aslan1786 |
| Keywords | vue, player |

## Links

- npm: https://www.npmjs.com/package/jdy-player
- npm.io page: https://npm.io/package/jdy-player

## Dependencies (3)

- [hls.js](https://npm.io/package/hls.js.md) ^1.0.4
- [dplayer](https://npm.io/package/dplayer.md) ^1.22.2
- [vue-github-badge](https://npm.io/package/vue-github-badge.md) 1.0.1

## Recent versions

- 1.2.10 (latest) — 2022-05-19

## README

# jdy-player

> A Vue 2.x video player component based on [DPlayer](https://github.com/DIYgod/DPlayer).


## Install

```bash
npm install jdy-player -S
```


## Props
[Options Doc](http://dplayer.js.org/#/home?id=options)

| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| options | Object | -- | all player options |

## Events
[Event binding Doc](http://dplayer.js.org/#/home?id=event-binding)

Example:

```js
<jdy-player @play="play"></jdy-player>

export default {
    methods: {
      play() {
        console.log('play callback')
      }
    }
```

## API

you can use all DPlayer [APIs](http://dplayer.js.org/#/home?id=api)

Example:

```js
<jdy-player ref="player"></jdy-player>

export default {
    mounted() {
      const player = this.$refs.player.dp
      player.play()
      setTimeout(() => {
        player.pause()
      }, 2000)
    }
```
## Related

- [DPlayer](https://github.com/DIYgod/DPlayer)

# License

This content is released under the [MIT](http://opensource.org/licenses/MIT) License.

---
_Source: https://npm.io/package/jdy-player · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
