0.0.8 • Published 6 years ago

vue-aplyr v0.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

usage

import VueAPlyr from 'vue-aplyr';

// if you don't want to use v-aplyr-[component], ignore the second param.
Vue.use(VueAPlyr, {
    controls: ['button', 'progress', 'time'],
});

easiest way

<v-aplyr src="./example.mp3" type="audio/mp3"></v-aplyr>

or

<v-aplyr>
    <source src="myAudio.mp3" type="audio/mpeg">
    <source src="myAudio.ogg" type="audio/ogg">
    <p>Your browser doesn't support HTML5 audio. Here is a <a href="myAudio.mp4">link to the audio</a> instead.</p>
</v-aplyr>

just like the way using <audio> directly.

customize your own control

use slot="controls"

<v-aplyr src="./example.mp3" type="audio/mp3">
    <div slot="controls">
        <!-- your own controls -->
        <v-aplyr-button control="play">PLAY BUTTON</v-aplyr-button>
    </div>
</v-aplyr>
0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

1.0.0

6 years ago