1.0.0 • Published 12 months ago

audio-player-vue v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

audio-player-vue

A audio player plugin with vue2.

public

npm run build

npm publish --access public

Build Setup

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不可以同时存在
1.0.0

12 months ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago