custom-audio
v1.0.5
Published
Only vue3 is supported Support for mobile platform
Downloads
44
Readme
custom-audio
Only vue3 is supported
Support for mobile platform
Install
yarn add custom-audio
Usage
import CustomAudio from 'custom-audio';
createApp(App).use(CustomAudio).mount('#app');
<template>
<custom-audio :src="config.src" :downBlob="true" />
</template>
<script setup>
const config = {
src: 'xxx.mp3',
};
</script>
Options
| Option | Description | | -------- | ----------------------------------------------------- | | src | Playback address | | downBlob | use a download attribute/use fetch(html5 api) methods |
Preview
https://dshvv.github.io/custom-audio/