audio-player-vue

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i audio-player-vue

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

1.29 MB

Total Files

22

Last publish

Collaborators

  • miyazhong