W audioplayer vue

An audio player by howler.

Version: 2.0.3 Updated: 04/21/2021

By: yuda-lyu License: MIT

Downloads Last 30 Days: 123

w-audioplayer-vue

An audio player by howler.

language language npm version Build Status license gzip file size npm download jsdelivr download

Documentation

To view documentation or get support, visit docs.

Example

To view some examples for more understanding, visit examples:

all examples: web [source code]

Installation

Using npm(ES6 module):

Note: w-audioplayer-vue is mainly dependent on w-howler .

npm i w-audioplayer-vue

By import:

<w-audioplayer-vue 
    v-model="..."
></w-audioplayer-vue>

import WAudioplayerVue from 'w-audioplayer-vue'

Vue.component('w-audioplayer-vue', WAudioplayerVue)

In a browser(UMD module):

Note: w-audioplayer-vue is mainly dependent on vue.

[Necessary] Add script for vue.

<script src="https://cdn.jsdelivr.net/npm/vue@2.x/dist/vue.min.js"></script>

[Necessary] Add script for w-audioplayer-vue.

<script src="https://cdn.jsdelivr.net/npm/w-audioplayer-vue@2.0.3/dist/w-audioplayer-vue.umd.js"></script>

Directly use:

<w-audioplayer-vue 
    v-model="..."
></w-audioplayer-vue>

Vue.component('w-audioplayer-vue', window['w-audioplayer-vue'])

new Vue({
    el: '#app',
    data: {
        content: 'abc中文123'
    }
})
Categories: Vue js