# audio-player-vue

> A Vue.js project

Latest version **1.0.0** (published 2023-05-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install audio-player-vue
pnpm add audio-player-vue
yarn add audio-player-vue
bun add audio-player-vue
```

## 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.0.0 |
| Published | 2023-05-23 |
| First published | 2023-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | miyazhong |
| Maintainers | miyazhong |

## Links

- npm: https://www.npmjs.com/package/audio-player-vue
- Repository: https://github.com/zhongdm/audio-player-vue
- Issues: https://github.com/zhongdm/audio-player-vue/issues
- npm.io page: https://npm.io/package/audio-player-vue

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.5.11
- [transform-runtime](https://npm.io/package/transform-runtime.md) ^0.0.0

## Recent versions

- 1.0.0 (latest) — 2023-05-23

## README

# audio-player-vue

> A audio player plugin with vue2.

## public
``` bash
npm run build

npm publish --access public

```
## Build Setup

``` bash
npm i audio-player-vue

import AudioPlayer from 'audio-player-vue'
# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build
```
### usage
```
<AudioPlayer
  simple
  :src="require('./assets/audio.ogg')"
>
<AudioPlayer
  backplay
  :src="require('./assets/audio.ogg')"
>
<AudioPlayer
  :src="require('./assets/audio.ogg')"
>
```

### Options
+ src - video的路径
+ autopay: Boolean
+ controls: Boolean
+ muted
+ loop
+ simple - 只保留一个播放/暂定按钮
+ backplay - 针对打开时直接播放的audio，只保留一个静音/有声按钮
ps: simple 和backplay不可以同时存在

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